7

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?

HaltingState
  • 1,810
  • 1
  • 20
  • 22

1 Answers1

6

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.

Community
  • 1
  • 1
Mr Fooz
  • 109,094
  • 6
  • 73
  • 101