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