mirror of
https://github.com/python/cpython.git
synced 2025-08-20 16:53:19 +00:00
Backport 55731:
SF 1668596/1720897: distutils now copies data files even if package_dir is empty.
This commit is contained in:
parent
2e23bb7545
commit
2413e038c4
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