Kaydet (Commit) e5b267cc authored tarafından Greg Ward's avatar Greg Ward

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.").
üst 51def7d6
......@@ -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 ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment