mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
SF patch 959726: sdist versus SVN
The disutils sdist command now ignores .svn directories.
This commit is contained in:
parent
92816de18e
commit
2f50e90818
3 changed files with 12 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue