Skip to content Skip to sidebar Skip to footer

How Can I Merge Multiple Cython Pyx Files Into A Single Linked Library?

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?

Solution 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.

Post a Comment for "How Can I Merge Multiple Cython Pyx Files Into A Single Linked Library?"