summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorTim Heap <tim@timheap.me>2016-11-21 01:44:22 +0200
committerTim Heap <tim@timheap.me>2016-11-21 01:44:22 +0200
commit23aba916e1070d3cf9723af85a6ce07c89053931 (patch)
tree2c2338eb30dfc56cc83d4aab437c2ce9c68da0fe /setuptools/command/egg_info.py
parente8d53c0b830744a3cec9c0080293c39dfbf5ac72 (diff)
downloadpython-setuptools-git-23aba916e1070d3cf9723af85a6ce07c89053931.tar.gz
Fix #849 global-exclude globbing
After #764, `global-exclude .pyc` no longer excluded `.pyc` files. This fixes that regression, and adds a test for this behaviour.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 6cc8f4c4..c4555b3e 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -457,7 +457,7 @@ class FileList(_FileList):
"""
if self.allfiles is None:
self.findall()
- match = translate_pattern(os.path.join('**', pattern))
+ match = translate_pattern(os.path.join('**', '*' + pattern))
found = [f for f in self.allfiles if match.match(f)]
self.extend(found)
return bool(found)
@@ -466,7 +466,7 @@ class FileList(_FileList):
"""
Exclude all files anywhere that match the pattern.
"""
- match = translate_pattern(os.path.join('**', pattern))
+ match = translate_pattern(os.path.join('**', '*' + pattern))
return self._remove_files(match.match)
def append(self, item):