# CMD 窗口运行 # python alg_setup.py build_ext --inplace from distutils.core import setup, Extension from Cython.Build import cythonize import numpy #import sklearn setup( name='iail_mdk', version='1.0', author='IAIL', author_email='zhouf_2011@mail.dlut.edu.cn', ext_modules = cythonize([ Extension( '${pyName}', # 算法路径 sources=['${fileName}'], language='c++', include_dirs=[numpy.get_include()], library_dirs=[], libraries=[], extra_compile_args=[], extra_link_args=[] ) ] ) )