How to include .pyx file in python package

巧了我就是萌 提交于 2020-06-12 02:04:02

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!