[New-bugs-announce] [issue14004] Distutils filelist selects too many files on Windows
Jason R. Coombs
report at bugs.python.org
Mon Feb 13 21:57:08 CET 2012
New submission from Jason R. Coombs <jaraco at jaraco.com>:
When using a MANIFEST.in with only "include *.txt", on Windows, distutils grabs too many files. I set DISTUTILS_DEBUG=1 and ran ./setup.py sdist on the keyring library and it included this output:
include *.txt
include_pattern: applying regex r'^[^/]*\.txt\Z(?ms)'
adding CHANGES.txt
adding CONTRIBUTORS.txt
adding .hg\last-message.txt
adding keyring.egg-info\dependency_links.txt
adding keyring.egg-info\requires.txt
adding keyring.egg-info\SOURCES.txt
adding keyring.egg-info\top_level.txt
As you can see, this is not a recursive include, but it's matching several files not in the supplied pattern (files in .hg/ and keyring.egg-info/).
It's obvious from the regular expression that the regex doesn't properly account for os.sep.
----------
assignee: tarek
components: Distutils
messages: 153302
nosy: eric.araujo, jason.coombs, tarek
priority: normal
severity: normal
status: open
title: Distutils filelist selects too many files on Windows
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14004>
_______________________________________
More information about the New-bugs-announce
mailing list