summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-05-31 19:27:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-05-31 19:27:59 (GMT)
commit2f50e90818f17dd20760c9eb0854b603634f157d (patch)
treeb93eaa5f79d158ef668d6e2c0da5d65e8c64b5dd /Lib/distutils
parent92816de18e3456f8304a1aaa6f28b151858a6e5d (diff)
downloadcpython-2f50e90818f17dd20760c9eb0854b603634f157d.zip
cpython-2f50e90818f17dd20760c9eb0854b603634f157d.tar.gz
cpython-2f50e90818f17dd20760c9eb0854b603634f157d.tar.bz2
SF patch 959726: sdist versus SVN
The disutils sdist command now ignores .svn directories.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/sdist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 0a29add..7021496 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -347,14 +347,14 @@ class sdist (Command):
* the build tree (typically "build")
* the release tree itself (only an issue if we ran "sdist"
previously with --keep-temp, or it aborted)
- * any RCS or CVS directories
+ * any RCS, CVS and .svn directories
"""
build = self.get_finalized_command('build')
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(r'/(RCS|CVS)/.*', is_regex=1)
+ self.filelist.exclude_pattern(r'/(RCS|CVS|\.svn)/.*', is_regex=1)
def write_manifest (self):