add setup_folder

ChampagneX 4 months ago
parent 561ad866d9
commit 56e7fb5810

@ -0,0 +1,12 @@
import os
# 获取指定路径下的文件
dirs = os.listdir("/")
# 循环读取路径下的文件并筛选输出
for i in dirs:
if os.path.splitext(i)[-1] == ".so":
old_name = i
new_name = i.split('.')[0] + ".so"
os.rename(old_name, new_name)
print("rename:" + old_name + "->" + new_name)

@ -0,0 +1,11 @@
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules=cythonize(["../measure_lib.py"]))
setup(ext_modules=cythonize(["../calc_way.py"]))
setup(ext_modules=cythonize(["../calc_slope_line.py"]))
setup(ext_modules=cythonize(["../get_data.py"]))
setup(ext_modules=cythonize(["../model.py"]))
setup(ext_modules=cythonize(["../main_test.py"]))
#python setup.py build_ext --inplace

@ -0,0 +1 @@
import measure_lib
Loading…
Cancel
Save