from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
filename = 'bbox' # 源文件名
full_filename = 'bbox.pyx' # 包含后缀的源文件名
setup(
cmdclass={'build_ext': build_ext},
include_dirs=[numpy.get_include()],
ext_modules=[Extension(filename, [full_filename])] # 配置需要cython编译的源文件
)
前提是已经安装好了cython和mingw-w64