When creating a source distribution using python's setuptools (python setup.py sdist
), I am using a MANIFEST.in
file containing the line:
recursive-include mypackage
because I want to include some non-module files inside the mypackage directory. However, there are also symbolic links under the mypackage directory whose targets I do not want included in my source distribution. Is there a way to specify "ignore symlinks" inside the MANIFEST.in
?
I know... I probably shouldn't have those symlinks there.
MANIFEST_template.in
intoMANIFEST.in
at the start of yoursetup.py
? Scanning for symlinks with the info from this post. Would be nice if there's such an option, though. – Parliamentarianrecursive-include mypackage
to include everything in your package should be avoided. This can pick up lots of things you really don't want included in your distributions. You should list specific files if they are few and special, or otherwise include them by extension or other file name pattern, e.g.recursive-include mypackage *.mydataformat
. – Sixfoldexclude
s afterrecursive-include
inMANIFEST.in
– directives are evaluated in order. – Unreasoning