Installing on Pypy fails because of CPython-specific extension modules
|Reported by:||lvh||Owned by:||lvh|
(github, patch, buildbot, log)
Description (last modified by exarkun)
Some of the extension modules (specifically the Cython extensions) are CPython specific and break on Pypy. This makes pip install -e some_twisted_checkout not work. Eventually it blows up with an error like:
/home/lvh/tmp/pypy/include/pypy_decl.h:129:29: note: expected ‘struct PyThreadState *’ but argument is of type ‘int’
There is a complete pip log attached to this ticket.
Armin Rigo has assured me this is a consequence of Cython. Cython support in Pypy is a work in progress. There are a number of potential eventual resolutions for this, but the correct thing to do right now is to disable compilation of the module on not-CPython. The right thing to do *eventually* might be re-enable it, or just use `select.epoll` as available on recent Pythons.
The affected modules are twisted.test.raiser, twisted.internet.iocpreactor.iocpsupport.iocpsupport and twisted.python.epoll`.
Change History (22)
comment:16 Changed 4 years ago by jell
- Resolution fixed deleted
- Status changed from closed to reopened
Changed 4 years ago by jell
comment:17 Changed 4 years ago by exarkun
- Resolution set to fixed
- Status changed from reopened to closed