Backport 55731:

SF 1668596/1720897: distutils now copies data files
even if package_dir is empty.
This commit is contained in:
Neal Norwitz 2007-06-02 18:53:07 +00:00
parent 2e23bb7545
commit 2413e038c4
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 = [