How can I merge multiple Cython pyx files into a single linked library?

心不动则不痛 提交于 2020-02-10 10:55:22

问题


I have multiple .pyx files, is there a way to import them into a single pyx file and compile that file into a shared library, instead of having to compile 15 independent modules?


回答1:


At the moment, it seems the only way is to create a master .pyx file that uses include directives to create a monolithic .C file.

See project structure for wrapping many c++ classes in cython to a single shared object.



来源:https://stackoverflow.com/questions/8772966/how-can-i-merge-multiple-cython-pyx-files-into-a-single-linked-library

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!