pycrypto use setup.py --prefix instead of easy_install

This commit is contained in:
akshayaurora 2015-07-19 23:32:50 +05:30
parent 0985301591
commit 2f5f17b578

View file

@ -39,9 +39,7 @@ class PycryptoRecipe(CythonRecipe):
build_env = arch.get_env() build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python") dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages') build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "-m", "easy_install", shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
"--prefix", dest_dir, "-Z", "./",
_env=build_env)
recipe = PycryptoRecipe() recipe = PycryptoRecipe()