How to include .pyx file in python package

I used cython in my pyirt packages, but when I published it in pypi, the .pyx file is not included in tar.gz

I think this should have something to do with the installation file. However, I cannot find a solution to this problem.

+6
source share
1 answer

You can add the MANIFEST.in file to the top level of your project and add the following line:

 global-include *.pyx global-include *.pxd 

You can find the correct commands for the MANIFEST.in here file.

+8
source

Source: https://habr.com/ru/post/984177/


All Articles