pycparser and cffi recipes install

This commit is contained in:
Robert Niederreiter 2016-10-17 08:55:33 +02:00
parent 26a76b65e5
commit 2cb3124e35
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,4 @@
from os.path import join
from toolchain import CythonRecipe

View file

@ -18,6 +18,10 @@ class PycparserRecipe(PythonRecipe):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
# manually create expected directory in build directory
scripts_dir = join("build", "scripts-2.7")
if not os.path.exists(scripts_dir):
os.makedirs(scripts_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")