I used cython in my packages pyirt, but when I published it to the pypi, the .pyx file is not included in the tar.gz
I think it must has something to do with the setup file. However, I cannot find a solution to this problem.
To compile the example. pyx file, select Tools | Run setup.py Task command from the main menu. In the Enter setup.py task name type build and select the build_ext task. See Create and run setup.py for more details.
Because Cython code compiles to C, it can interact with those libraries directly, and take Python's bottlenecks out of the loop. But NumPy, in particular, works well with Cython. Cython has native support for specific constructions in NumPy and provides fast access to NumPy arrays.
You may want to add a MANIFEST.in
file to the top level of your project and add following line:
global-include *.pyx
global-include *.pxd
You can find valid commands for the MANIFEST.in
file here
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With