[issue14004] Distutils filelist selects too many files on Windows

Éric Araujo report at bugs.python.org
Wed Feb 15 16:42:50 CET 2012


Éric Araujo <merwok at netwok.org> added the comment:

So it looks like that even if the exclusion of .hg removes .hg/last-message.txt, it should not have been added in the first place, as the command was include and not recursive-include.

At first glance, Nadeem’s proposed fix is not right: paths in MANIFEST.in use '/', but then filelist produces paths using os.sep, so that the MANIFEST file and other operations done by the sdist command use native paths.  So even though the currently supported OSes all accept '/', I think the right thing is to use os.sep.

(About posixpath: It is always available and can be used e.g. to manipulate URI paths.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14004>
_______________________________________


More information about the Python-bugs-list mailing list