mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
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:
parent
19a7daa507
commit
4a700bb469
4 changed files with 42 additions and 1 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue