mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#1725737: ignore other VC directories other than CVS and SVN's too.
This commit is contained in:
parent
1d136bb91e
commit
1df03405fc
2 changed files with 7 additions and 5 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, CVS and .svn directories
|
||||
* any RCS, CVS, .svn, .hg, .git, .bzr, _darcs 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|\.svn)/.*', is_regex=1)
|
||||
self.filelist.exclude_pattern(r'(^|/)(RCS|CVS|\.svn|\.hg|\.git|\.bzr|_darcs)/.*', is_regex=1)
|
||||
|
||||
|
||||
def write_manifest (self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue