[Pyrex] compiling more .pyx and .pxd files into one .so

Stefan Behnel stefan_ml at behnel.de
Fri Sep 14 11:45:08 CEST 2007


Stefano Esposito wrote:
> Is it possible to write several pyx and pxd files and have 'em compiled into an unique shared object? And if it is, how i can do this, possibly with distutils?

Have you tried specifying more than one .pyx file in your setup.py Extension?

In case you're referring to calling functions or using types from different
.pyx files, you can declare them "public". Read the Pyrex docs on this topic.

Stefan




More information about the Pyrex mailing list