I have a trivial "hello world" Cython module working just fine w/Python 2.7 on my Mac, w/setup.py being:
from distutils.core import setup
from Cython.Build import cythonize
setup(name="hello",ext_modules=cythonize('hello.pyx'))
However on installing cython for Python 3.5 (with `pip3 install cython`, seems fine, downloads and installs Cython-0.23.4-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl), then `sudo python3 setup.py install` on this trivial module crashes:
Traceback (most recent call last):
File "setup.py", line 2, in <module>
from Cython.Build import cythonize
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/Cython/Build/__init__.py", line 1, in <module>
from .Dependencies import cythonize
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 49, in <module>
from ..Compiler.Main import Context, CompilationOptions, default_options
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 28, in <module>
from .Scanning import PyrexScanner, FileSourceDescriptor
ImportError: dynamic module does not define module export function (PyInit_.Scanning)
Cython bug, or, am I doing something wrong? I'd love to cover Cython better in the 3rd ed of Python in a Nutshell (which I'm writing at long last), but if I can't test with Python 3.5 (which the book will cover as well as 2.7), then I may need to rethink the strategy.
Thanks,
Alex