This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients eric.araujo, jaraco, tarek
Date 2012-02-13.20:57:07
SpamBayes Score 7.75652e-05
Marked as misclassified No
Message-id <1329166628.27.0.616152401371.issue14004@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-02-13 20:57:08jaracosetrecipients: + jaraco, tarek, eric.araujo
2012-02-13 20:57:08jaracosetmessageid: <1329166628.27.0.616152401371.issue14004@psf.upfronthosting.co.za>
2012-02-13 20:57:07jaracolinkissue14004 messages
2012-02-13 20:57:07jaracocreate