[pywin32-checkins] /hgroot/pywin32/pywin32: work around FileList() bugfix in Python...
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2012-04-30 07:51:08
|
changeset bb81eda78987 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=bb81eda78987 summary: work around FileList() bugfix in Python 2.7+, thanks to clues from Tim Golden diffstat: setup.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diffs (24 lines): diff -r 7319d151e057 -r bb81eda78987 setup.py --- a/setup.py Wed Apr 25 21:23:31 2012 -0400 +++ b/setup.py Mon Apr 30 17:50:11 2012 +1000 @@ -2211,15 +2211,15 @@ if file.find("*") >= 0: flist = FileList() flist.findall(os.path.dirname(file)) - flist.include_pattern(os.path.basename(file)) + flist.include_pattern(os.path.basename(file), anchor=0) # We never want CVS - flist.exclude_pattern(re.compile(".*\\\\CVS\\\\"), is_regex=1) - flist.exclude_pattern("*.pyc") - flist.exclude_pattern("*.pyo") + flist.exclude_pattern(re.compile(".*\\\\CVS\\\\"), is_regex=1, anchor=0) + flist.exclude_pattern("*.pyc", anchor=0) + flist.exclude_pattern("*.pyo", anchor=0) # files with a leading dot upset bdist_msi, and '.*' doesn't # work - it matches from the start of the string and we have # dir names. So any '\.' gets the boot. - flist.exclude_pattern(re.compile(".*\\\\\."), is_regex=1) + flist.exclude_pattern(re.compile(".*\\\\\."), is_regex=1, anchor=0) if not flist.files: raise RuntimeError("No files match '%s'" % file) files_use = flist.files |