From 2cb3124e35fa4b2435c730e24a125554f686221d Mon Sep 17 00:00:00 2001 From: Robert Niederreiter Date: Mon, 17 Oct 2016 08:55:33 +0200 Subject: [PATCH] pycparser and cffi recipes install --- recipes/cffi/__init__.py | 1 + recipes/pycparser/__init__.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/recipes/cffi/__init__.py b/recipes/cffi/__init__.py index 536c1a7..ce5548d 100644 --- a/recipes/cffi/__init__.py +++ b/recipes/cffi/__init__.py @@ -1,3 +1,4 @@ +from os.path import join from toolchain import CythonRecipe diff --git a/recipes/pycparser/__init__.py b/recipes/pycparser/__init__.py index a155693..947065d 100644 --- a/recipes/pycparser/__init__.py +++ b/recipes/pycparser/__init__.py @@ -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")