[New-bugs-announce] [issue14106] Distutils manifest: recursive-(include|exclude) matches suffix instead of full filename
report at bugs.python.org
Fri Feb 24 15:46:35 CET 2012
New submission from Nadeem Vawda <nadeem.vawda at gmail.com>:
As I understand it, a MANIFEST.in directive:
recursive-include foo bar.*
is meant to match files under foo for with names beginning with "bar.".
However, the actual regex that is generated for this line is:
which matches any filename under foo that contains "bar." anywhere in the
base filename. For example, if foo contains files bar.py and test_bar.py,
then the pattern will match both filenames. Is this the intended
behaviour? I would have expected it to only match bar.py.
If the desired behavior is what I expected (and not how it currently
works), then the desired regex is:
The attached patch (against 2.7) implements this change. It is dependent
on the fix for issue 6884. I have tested it on both Linux and Windows.
nosy: eric.araujo, nadeem.vawda, tarek
stage: needs patch
title: Distutils manifest: recursive-(include|exclude) matches suffix instead of full filename
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file24628/recursive-include.diff
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce