[issue14004] Distutils filelist selects too many files on Windows

Nadeem Vawda report at bugs.python.org
Wed Feb 15 08:24:10 CET 2012


Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:

> The bug is indeed fixed in the latest 2.7 tip:
>
>     PS C:\Users\jaraco\projects\public\keyring> C:\Users\jaraco\projects\public\cpython\PCbuild\amd64\python.exe setup.py sdist 2> NULL | findstr .hg
>    (produces no output)

I suspect you forgot to set DISTUTILS_DEBUG before running this -
otherwise that command should at least output a line like this:

    exclude_pattern: applying regex r'(^|/|\\)(RCS|CVS|\.svn|\.hg|\.git|\.bzr|_darcs)(/|\\).*'


> If always using a posix path separator, I recommend using posixpath.join instead of hard-coding the path separator.

Interesting. I had thought that posixpath and ntpath were each only
available on their respective platforms, but looking at the source,
I see that I was mistaken.

----------

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


More information about the Python-bugs-list mailing list