PyQt/其它/C和C++扩展/pyx和c++/setup.py

12 lines
332 B
Python
Raw Normal View History

2018-05-06 01:34:55 +08:00
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
import numpy
setup(
cmdclass={'build_ext': build_ext},
ext_modules=[Extension("CalSpecSpea", sources=[
"CalSpecSpea.pyx", "CalSpecSpeaLib.cpp"], language="c++", include_dirs=[numpy.get_include()])]
)