From dbb37bb3608e50a8e69659e5f0bfe698a0c72193 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期五, 08 十一月 2024 09:32:04 +0800 Subject: [PATCH] setup.py.vm --- iailab-module-model/iailab-module-model-biz/src/main/resources/template/setup.py.vm | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/template/setup.py.vm b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/setup.py.vm new file mode 100644 index 0000000..f5f27a8 --- /dev/null +++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/setup.py.vm @@ -0,0 +1,26 @@ +# 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=[] + ) + ] + ) +) \ No newline at end of file -- Gitblit v1.9.3