SF 1668596/1720897: distutils now copies data files

even if package_dir is empty.

This needs to be backported.  I'm too tired tonight.  It would be great
if someone backports this if the buildbots are ok with it.  Otherwise,
I will try to get to it tomorrow.
This commit is contained in:
Neal Norwitz 2007-06-01 07:29:12 +00:00
parent 19a7daa507
commit 4a700bb469
4 changed files with 42 additions and 1 deletions

View file

@ -114,7 +114,9 @@ class build_py (Command):
build_dir = os.path.join(*([self.build_lib] + package.split('.')))
# Length of path to strip from found files
plen = len(src_dir)+1
plen = 0
if src_dir:
plen = len(src_dir)+1
# Strip directory from globbed filenames
filenames = [