diff options
| author | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2022-05-07 21:25:55 +0800 |
|---|---|---|
| committer | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2022-05-07 21:35:36 +0800 |
| commit | ed6790fb0220686c648c578726c92664984bcaec (patch) | |
| tree | f7629c16711d20e810621dfcddab79303ed3e740 /setuptools/command/build_py.py | |
| parent | ddb8844eac49e0bf3b4f20067b425ffeac1531a2 (diff) | |
| download | python-setuptools-git-ed6790fb0220686c648c578726c92664984bcaec.tar.gz | |
Allow recursive globs for package_data
Diffstat (limited to 'setuptools/command/build_py.py')
| -rw-r--r-- | setuptools/command/build_py.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index c3fdc092..ac7cff95 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -1,3 +1,4 @@ +from functools import partial from glob import glob from distutils.util import convert_path import distutils.command.build_py as orig @@ -98,7 +99,7 @@ class build_py(orig.build_py): package, src_dir, ) - globs_expanded = map(glob, patterns) + globs_expanded = map(partial(glob, recursive=True), patterns) # flatten the expanded globs into an iterable of matches globs_matches = itertools.chain.from_iterable(globs_expanded) glob_files = filter(os.path.isfile, globs_matches) |
