From 526177bf8d7ce9d7a166a020670cf915be6043bc Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Fri, 4 Jan 2019 15:55:57 -0500 Subject: [PATCH] change names in python recipe too --- recipes/python2/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/python2/__init__.py b/recipes/python2/__init__.py index ac253e6..8402b8f 100644 --- a/recipes/python2/__init__.py +++ b/recipes/python2/__init__.py @@ -75,7 +75,7 @@ class Python2Recipe(Recipe): "install", "CROSS_COMPILE_TARGET=yes", "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) self.reduce_python() @@ -119,13 +119,13 @@ class Python2Recipe(Recipe): oldpwd = os.getcwd() try: 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", "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("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", "*.py", "-exec", "rm", "{}", ";") #sh.find(".", "-iname", "test*", "-exec", "rm", "-rf", "{}", ";")