change names in python recipe too

This commit is contained in:
Kjell Wooding 2019-01-04 15:55:57 -05:00
parent 8af6bc59e0
commit 526177bf8d

View file

@ -75,7 +75,7 @@ class Python2Recipe(Recipe):
"install", "install",
"CROSS_COMPILE_TARGET=yes", "CROSS_COMPILE_TARGET=yes",
"HOSTPYTHON={}".format(self.ctx.hostpython), "HOSTPYTHON={}".format(self.ctx.hostpython),
"prefix={}".format(join(self.ctx.dist_dir, "root", "python")), "prefix={}".format(join(self.ctx.dist_dir, "root", "python2")),
_env=build_env) _env=build_env)
self.reduce_python() self.reduce_python()
@ -119,13 +119,13 @@ class Python2Recipe(Recipe):
oldpwd = os.getcwd() oldpwd = os.getcwd()
try: try:
print("Remove files unlikely to be used") print("Remove files unlikely to be used")
os.chdir(join(self.ctx.dist_dir, "root", "python")) os.chdir(join(self.ctx.dist_dir, "root", "python2"))
sh.rm("-rf", "share") sh.rm("-rf", "share")
sh.rm("-rf", "bin") sh.rm("-rf", "bin")
os.chdir(join(self.ctx.dist_dir, "root", "python", "lib")) os.chdir(join(self.ctx.dist_dir, "root", "python2", "lib"))
sh.rm("-rf", "pkgconfig") sh.rm("-rf", "pkgconfig")
sh.rm("libpython2.7.a") sh.rm("libpython2.7.a")
os.chdir(join(self.ctx.dist_dir, "root", "python", "lib", "python2.7")) os.chdir(join(self.ctx.dist_dir, "root", "python2", "lib", "python2.7"))
sh.find(".", "-iname", "*.pyc", "-exec", "rm", "{}", ";") sh.find(".", "-iname", "*.pyc", "-exec", "rm", "{}", ";")
sh.find(".", "-iname", "*.py", "-exec", "rm", "{}", ";") sh.find(".", "-iname", "*.py", "-exec", "rm", "{}", ";")
#sh.find(".", "-iname", "test*", "-exec", "rm", "-rf", "{}", ";") #sh.find(".", "-iname", "test*", "-exec", "rm", "-rf", "{}", ";")