host_setuptools WIP
This commit is contained in:
parent
c34f792a17
commit
3375a52195
1 changed files with 6 additions and 5 deletions
|
@ -9,15 +9,16 @@ import shutil
|
|||
class HostSetuptools(Recipe):
|
||||
depends = ["hostpython"]
|
||||
archs = ["x86_64"]
|
||||
url = "ez_setup"
|
||||
url = ""
|
||||
|
||||
def prebuild_arch(self, arch):
|
||||
hostpython = sh.Command(self.ctx.hostpython)
|
||||
sh.curl("-O", "https://bootstrap.pypa.io/ez_setup.py")
|
||||
dest_dir = join(self.ctx.dist_dir, "root", "python")
|
||||
build_env = arch.get_env()
|
||||
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
|
||||
#dest_dir = join(self.ctx.dist_dir, "root", "python")
|
||||
#build_env = arch.get_env()
|
||||
#build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
|
||||
# shprint(hostpython, "./ez_setup.py", "--to-dir", dest_dir)
|
||||
shprint(hostpython, "./ez_setup.py", _env=build_env)
|
||||
#shprint(hostpython, "./ez_setup.py", _env=build_env)
|
||||
shprint(hostpython, "./ez_setup.py")
|
||||
|
||||
recipe = HostSetuptools()
|
||||
|
|
Loading…
Reference in a new issue