summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-12-03 09:20:19 -0500
committerGitHub <noreply@github.com>2016-12-03 09:20:19 -0500
commit3e6669a76fefd466717df655b5975a7d290b593c (patch)
tree1a7dca8c4c4fc6d10106819d3f4c0f3b92eb7736 /setuptools/command/egg_info.py
parent2e0b4d41da9042cf658499c95ec506a3b38734d1 (diff)
parent23aba916e1070d3cf9723af85a6ce07c89053931 (diff)
downloadpython-setuptools-git-3e6669a76fefd466717df655b5975a7d290b593c.tar.gz
Merge pull request #853 from timheap/global-exclude-glob
Fix #849 global-exclude globbing
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 6f8fd874..8a06e496 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):