[Python-checkins] r68279 - in python/branches/release26-maint: Lib/distutils/command/sdist.py Lib/distutils/tests/test_sdist.py Misc/NEWS
tarek.ziade
python-checkins at python.org
Sun Jan 4 01:07:14 CET 2009
Author: tarek.ziade
Date: Sun Jan 4 01:07:14 2009
New Revision: 68279
Log:
Merged revisions 68276 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68276 | tarek.ziade | 2009-01-04 01:04:49 +0100 (Sun, 04 Jan 2009) | 1 line
fixed #1702551: distutils sdist was not pruning VCS directories under win32
........
Added:
python/branches/release26-maint/Lib/distutils/tests/test_sdist.py
- copied unchanged from r68276, /python/trunk/Lib/distutils/tests/test_sdist.py
Modified:
python/branches/release26-maint/ (props changed)
python/branches/release26-maint/Lib/distutils/command/sdist.py
python/branches/release26-maint/Misc/NEWS
Modified: python/branches/release26-maint/Lib/distutils/command/sdist.py
==============================================================================
--- python/branches/release26-maint/Lib/distutils/command/sdist.py (original)
+++ python/branches/release26-maint/Lib/distutils/command/sdist.py Sun Jan 4 01:07:14 2009
@@ -7,6 +7,7 @@
__revision__ = "$Id$"
import os, string
+import sys
from types import *
from glob import glob
from distutils.core import Command
@@ -354,8 +355,13 @@
self.filelist.exclude_pattern(None, prefix=build.build_base)
self.filelist.exclude_pattern(None, prefix=base_dir)
- self.filelist.exclude_pattern(r'(^|/)(RCS|CVS|\.svn|\.hg|\.git|\.bzr|_darcs)/.*', is_regex=1)
+ # pruning out vcs directories
+ # both separators are used under win32
+ seps = sys.platform == 'win32' and r'/|\\' or '/'
+ vcs_dirs = ['RCS', 'CVS', '\.svn', '\.hg', '\.git', '\.bzr', '_darcs']
+ vcs_ptrn = r'(^|%s)(%s)(%s).*' % (seps, '|'.join(vcs_dirs), seps)
+ self.filelist.exclude_pattern(vcs_ptrn, is_regex=1)
def write_manifest (self):
"""Write the file list in 'self.filelist' (presumably as filled in
Modified: python/branches/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS (original)
+++ python/branches/release26-maint/Misc/NEWS Sun Jan 4 01:07:14 2009
@@ -158,6 +158,9 @@
Library
-------
+- Issue #1702551: distutils sdist was not excluding VCS directories under
+ Windows. Inital solution by Guy Dalberto.
+
- Issue #4812: add missing underscore prefix to some internal-use-only
constants in the decimal module. (Dec_0 becomes _Dec_0, etc.)
More information about the Python-checkins
mailing list