问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/29227836/how-to-include-pyx-file-in-python-package