From e1273532f90f4ab5c406fa562978b351e451697d Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 27 Feb 2015 10:49:04 +0100 Subject: [PATCH] pyobjus: fix compilation, cythonize changes methods and pyobjus cannot work after that. --- recipes/pyobjus/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes/pyobjus/__init__.py b/recipes/pyobjus/__init__.py index 51c45c9..639b838 100644 --- a/recipes/pyobjus/__init__.py +++ b/recipes/pyobjus/__init__.py @@ -17,7 +17,11 @@ class PyobjusRecipe(CythonRecipe): return env def cythonize_build(self): - super(PyobjusRecipe, self).cythonize_build() + # don't use the cythonize, pyobjus don't support method rewriting + shprint(sh.find, self.build_dir, "-iname", "*.pyx", + "-exec", "cython", "{}", ";") + # ffi is installed somewhere else, this include doesn't work + # XXX ideally, we need to fix libffi installation... shprint(sh.sed, "-i.bak", "s/ffi\///g",