提交 | 用户 | 时间
|
dbb37b
|
1 |
# CMD 窗口运行 |
D |
2 |
# python alg_setup.py build_ext --inplace |
|
3 |
from distutils.core import setup, Extension |
|
4 |
from Cython.Build import cythonize |
|
5 |
import numpy |
|
6 |
#import sklearn |
|
7 |
setup( |
|
8 |
name='iail_mdk', |
|
9 |
version='1.0', |
|
10 |
author='IAIL', |
|
11 |
author_email='zhouf_2011@mail.dlut.edu.cn', |
|
12 |
ext_modules = cythonize([ |
|
13 |
Extension( |
|
14 |
'${pyName}', |
|
15 |
# 算法路径 |
|
16 |
sources=['${fileName}'], |
|
17 |
language='c++', |
|
18 |
include_dirs=[numpy.get_include()], |
|
19 |
library_dirs=[], |
|
20 |
libraries=[], |
|
21 |
extra_compile_args=[], |
|
22 |
extra_link_args=[] |
|
23 |
) |
|
24 |
] |
|
25 |
) |
|
26 |
) |