Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Coverage data for dual-cython modules #1118
Since we started compiling local.py and greenlet.py (and the new _ident.py) we're not getting test coverage reports for those (important, large) files. We don't run the whole test suite under coverage on PyPy because for us it substantially slows things down (to the point that we get timeouts).
Other projects I work on use the PURE_PYTHON environment variable to decide whether to import their C accelerators. That of course relies on the C accelerators being separate modules than the python module.
We could probably do that (compile greenlet.py to _greenlet.so and have greenlet.py end with 'from _greenlet import *') except that Cython 0.27 ignores the module names. This is fixed in Cython 0.28. The problem there is that Cython 0.28 is currently unreleased, though as far as I can tell it works well.
Perhaps I should just pin a git commit of Cython 0.28 and use that to build with?
Otherwise, we're looking at one of: