diff options
| author | Philip Thiem <ptthiem@gmail.com> | 2014-04-23 21:54:27 -0500 |
|---|---|---|
| committer | Philip Thiem <ptthiem@gmail.com> | 2014-04-23 21:54:27 -0500 |
| commit | d118aae6b768cfdf387aca862e150e7736c7cd71 (patch) | |
| tree | 953d6dd67a97201a8d3254cad40be474995412a0 /setuptools/command/egg_info.py | |
| parent | c147c6789efe24bf54e20d5644aa338bd532adb7 (diff) | |
| download | python-setuptools-git-d118aae6b768cfdf387aca862e150e7736c7cd71.tar.gz | |
Prune paths file list starting with (RCS|CVS|.svn) as well as path with
such sub directories.
--HG--
branch : develop
extra : rebase_source : 2b3326fe668e880b351b0d5f388472239d915d58
Diffstat (limited to 'setuptools/command/egg_info.py')
| -rwxr-xr-x | setuptools/command/egg_info.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 6bb2ead9..be326ac2 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -316,7 +316,8 @@ class manifest_maker(sdist): self.filelist.exclude_pattern(None, prefix=build.build_base) self.filelist.exclude_pattern(None, prefix=base_dir) sep = re.escape(os.sep) - self.filelist.exclude_pattern(sep+r'(RCS|CVS|\.svn)'+sep, is_regex=1) + self.filelist.exclude_pattern(r'(^|'+sep+r')(RCS|CVS|\.svn)'+sep, + is_regex=1) def write_file(filename, contents): |
