diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-06-01 07:29:12 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-06-01 07:29:12 (GMT) |
commit | 4a700bb4698c1ec7f94b26f78f866929b013647f (patch) | |
tree | d97f9e24781653a915d34c51ac67f7cfccb3e512 /Lib/distutils/command | |
parent | 19a7daa50749d9e5e013daf87b064afa4b354729 (diff) | |
download | cpython-4a700bb4698c1ec7f94b26f78f866929b013647f.zip cpython-4a700bb4698c1ec7f94b26f78f866929b013647f.tar.gz cpython-4a700bb4698c1ec7f94b26f78f866929b013647f.tar.bz2 |
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.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/build_py.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index 621bcb4..b9f39ba 100644 --- a/Lib/distutils/command/build_py.py +++ b/Lib/distutils/command/build_py.py @@ -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 = [ |