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:
Greg Ward 2000-05-27 03:03:23 +00:00
parent 51def7d667
commit e5b267ccb6

View File

@ -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 ()