예제 #1
0
 def install(self):
     arch = list(self.filtered_archs)[0]
     build_env = arch.get_env()
     build_dir = self.get_build_dir(arch.arch)
     build_env["PATH"] = os.environ["PATH"]
     # Compiling sometimes looks for Python-ast.py in the 'Python' i.s.o.
     # the 'hostpython' folder. Create a symlink to fix. See issue #201
     shprint(sh.ln, "-s", join(build_dir, "hostpython2"),
             join(build_dir, "Python"))
     shprint(sh.make,
             self.ctx.concurrent_make,
             "-C",
             build_dir,
             "bininstall",
             "inclinstall",
             _env=build_env)
     pylib_dir = join(self.ctx.dist_dir, "hostpython2", "lib", "python2.7")
     if exists(pylib_dir):
         shutil.rmtree(pylib_dir)
     shutil.copytree(join(build_dir, "Lib"), pylib_dir)
     ensure_dir(join(pylib_dir, "config"))
     shutil.copy(join(build_dir, "Makefile"),
                 join(pylib_dir, "config", "Makefile"))
     shutil.copy(join(build_dir, "Parser", "pgen"),
                 join(self.ctx.dist_dir, "hostpython2", "bin", "pgen"))
예제 #2
0
 def install(self):
     arch = list(self.filtered_archs)[0]
     build_env = arch.get_env()
     build_dir = self.get_build_dir(arch.arch)
     build_env["PATH"] = os.environ["PATH"]
     # Compiling sometimes looks for Python-ast.py in the 'Python' i.s.o.
     # the 'hostpython' folder. Create a symlink to fix. See issue #201
     shprint(sh.ln, "-s",
             join(build_dir, "hostpython"),
             join(build_dir, "Python"))
     shprint(sh.make, self.ctx.concurrent_make,
             "-C", build_dir,
             "bininstall", "inclinstall",
             _env=build_env)
     pylib_dir = join(self.ctx.dist_dir, "hostpython", "lib", "python2.7")
     if exists(pylib_dir):
         shutil.rmtree(pylib_dir)
     shutil.copytree(
         join(build_dir, "Lib"),
         pylib_dir)
     ensure_dir(join(pylib_dir, "config"))
     shutil.copy(
         join(build_dir, "Makefile"),
         join(pylib_dir, "config", "Makefile"))
     shutil.copy(
         join(build_dir, "Parser", "pgen"),
         join(self.ctx.dist_dir, "hostpython", "bin", "pgen"))
예제 #3
0
 def install(self):
     arch = list(self.filtered_archs)[0]
     build_env = arch.get_env()
     build_dir = self.get_build_dir(arch.arch)
     build_env["PATH"] = os.environ["PATH"]
     shprint(sh.make, "-C", build_dir, "bininstall", "inclinstall", _env=build_env)
     pylib_dir = join(self.ctx.dist_dir, "hostpython", "lib", "python2.7")
     if exists(pylib_dir):
         shutil.rmtree(pylib_dir)
     shutil.copytree(join(build_dir, "Lib"), pylib_dir)
     ensure_dir(join(pylib_dir, "config"))
     shutil.copy(join(build_dir, "Makefile"), join(pylib_dir, "config", "Makefile"))
     shutil.copy(join(build_dir, "Parser", "pgen"), join(self.ctx.dist_dir, "hostpython", "bin", "pgen"))
예제 #4
0
 def install(self):
     arch = list(self.filtered_archs)[0]
     build_env = arch.get_env()
     build_dir = self.get_build_dir(arch.arch)
     build_env["PATH"] = os.environ["PATH"]
     shprint(sh.make,
             "-C",
             build_dir,
             "bininstall",
             "inclinstall",
             _env=build_env)
     pylib_dir = join(self.ctx.dist_dir, "hostpython", "lib", "python2.7")
     if exists(pylib_dir):
         shutil.rmtree(pylib_dir)
     shutil.copytree(join(build_dir, "Lib"), pylib_dir)
     ensure_dir(join(pylib_dir, "config"))
     shutil.copy(join(build_dir, "Makefile"),
                 join(pylib_dir, "config", "Makefile"))
     shutil.copy(join(build_dir, "Parser", "pgen"),
                 join(self.ctx.dist_dir, "hostpython", "bin", "pgen"))