How can I merge several Cython pyx files into one linked library?

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

+6
source share
1 answer

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

See the project structure for porting many C ++ classes in cython to one common object .

+4
source

Source: https://habr.com/ru/post/905418/


All Articles