How to fix MANIFEST.in graft having no effect on Windows
Problem:
In your MANIFEST.in, you have a line like
MANIFEST.in
graft src/but when you run
build_sdist.sh
python setup.py sdistsome file in src is not included in the archive
Solution
This is due to the slash at the end of src/! The slash works fine on Linux, but on Windows, backslashes are used to separate directory names. You can just remove the slash after src, it doesn’t serve any purpose on Windows or Linux:
MANIFEST.in
graft srcAfter that, retry and you should see your file being included in the sdist archive.
Check out similar posts by category:
Allgemein
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow