I am creating a package in Keaton. I use the following setup.py structure:
from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize import numpy import scipy extensions = [ Extension("xxxxx",["xxxx/xxxxx.pyx"], include_dirs=[numpy.get_include(),"."]), Extension("nnls",["xxxxx/xxxxx.pyx"], include_dirs=[numpy.get_include(),"."]), ] setup( name='xxxxxx', version='0.0.0', description='''********''', url='xxxxxxx', author='xxxxx', author_email='xxxxx', packages=[ 'xxxxx', ], install_requires=[ 'cython', 'numpy', 'scipy', ], ext_modules=cythonize(extensions), )
However, I get an error message when installing in Python 3. It works in Python 2, however it does not compile in Python 3 with the following error:
dynamic module does not define module export function
How can I solve this problem? Is the setup.py structure the reason why this is not compiling?
python numpy cython
Alger remirata
source share