mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Patch from Andrew Kuchling: prune out the build and source distribution
directories after all is said and done, so we don't accidentally include those files in the source distribution. (This is the quick and easy way to fix this; Andrew says: "Changing findall() looked like it was going to be messy, so I tried this instead. The only problem is that redundant directory traversals are being done, walking through build/ only to throw out all the files found at the end.").
This commit is contained in:
parent
51def7d667
commit
e5b267ccb6
@ -440,6 +440,13 @@ class sdist (Command):
|
||||
|
||||
# while loop over lines of template file
|
||||
|
||||
# Prune away the build and source distribution directories
|
||||
build = self.find_peer ('build')
|
||||
exclude_pattern (self.files, None, prefix=build.build_base)
|
||||
|
||||
base_dir = self.distribution.get_fullname()
|
||||
exclude_pattern (self.files, None, prefix=base_dir)
|
||||
|
||||
# read_template ()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user