aresch / rencode

Python module for fast (basic) object serialization similar to bencode
GNU General Public License v3.0
29 stars 7 forks source link

Module building from .pyx is broken with Cython <=0.27 #23

Closed jonathanunderwood closed 5 years ago

jonathanunderwood commented 5 years ago

Cython before version 0.28 required the the .pyx file and the resulting module extension name be the same. In the case where they're not the same, no init function is generated:

Traceback (most recent call last):
  File "test_rencode.py", line 29, in <module>
    from rencode import _rencode as rencode
ImportError: dynamic module does not define init function (init_rencode)

The trivial fix is to rename rencode.pyx to _rencode.pyx and make the corresponding change in setup.py.

jonathanunderwood commented 5 years ago

This was fixed by PR #24 - closing this.