I have multiple .py files in one package
packageA
\__init__.py
\mod1.py
\mod2.py
\mod3.py
can I config cython to compile and then packing them all in one packageA.pyd
?
I have multiple .py files in one package
packageA
\__init__.py
\mod1.py
\mod2.py
\mod3.py
can I config cython to compile and then packing them all in one packageA.pyd
?
Personally, I would better turn all the
.py
files into.pyx
, then include them into the main.pyx
of the Cython extension:packageA.pyx
:Then, compile using a
setup.py
looking like:Running this would generate an all in one
packageA.pyd
binary file. Of course, this will output a single module namedpackageA
, and I don't know if this is acceptable for you, or if you really need distinct modules in your package. But there might be other ways that better fit your question...