pyobjus: fix compilation, cythonize changes methods and pyobjus cannot work after that.

This commit is contained in:
Mathieu Virbel 2015-02-27 10:49:04 +01:00
parent 0f2e8dabf1
commit e1273532f9

View file

@ -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",