03 2021 档案
摘要:向setup.py里添加自定义command 参考这里 继承distutils.cmd.Command类: class CCleanCommand(distutils.cmd.Command): """clean the source code and the .c file after build
阅读全文
摘要:将某些.py 编译成动态库 设置好要编译的module们: compile_to_c_modules = [ 'package.module' ] 将它们转换成cythonize可识别的参数: def module_to_path(module): """转成路径形式""" return modul
阅读全文