私はCythonでパッケージをビルドしています。Cythonコンパイルエラー:ダイナミックモジュールがモジュールエクスポート関数を定義していません
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),
)
しかし、私はしかし、それは次のエラーを持つのPython 3でコンパイルされていないことは、Python 2で働いているのPython 3のインストール時にエラーを取得しています:私はsetup.py
ための構造として、以下を使用しています:
dynamic module does not define module export function
どうすればこの問題を解決できますか? setup.py
の構造はこれがコンパイルされていない理由ですか?