aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-11-18 13:15:33 +0000
committerPJ Eby <distutils-sig@python.org>2005-11-18 13:15:33 +0000
commit94c96c8c6583470e19fd2202ab2d70cc47f7a24c (patch)
tree3a3a0afc07a0c66282fecb78dbedd9231d28dc1e /setuptools/command/egg_info.py
parentfdf5cd175d701b095bff23faedc5f6c1d4c131d8 (diff)
downloadexternal_python_setuptools-94c96c8c6583470e19fd2202ab2d70cc47f7a24c.tar.gz
external_python_setuptools-94c96c8c6583470e19fd2202ab2d70cc47f7a24c.tar.bz2
external_python_setuptools-94c96c8c6583470e19fd2202ab2d70cc47f7a24c.zip
Fix .svn exclude pattern for non-Windows platforms.
--HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041475
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index a245002e..2879d5da 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -261,7 +261,8 @@ class manifest_maker(sdist):
base_dir = self.distribution.get_fullname()
self.filelist.exclude_pattern(None, prefix=build.build_base)
self.filelist.exclude_pattern(None, prefix=base_dir)
- self.filelist.exclude_pattern(os.sep+'\(RCS|CVS|\.svn)', is_regex=1)
+ sep = re.escape(os.sep)
+ self.filelist.exclude_pattern(sep+r'(RCS|CVS|\.svn)'+sep, is_regex=1)