Even though glob supports it, glob support for recursive ** searching is not enabled when specifying package_data. This is not clear in the documentation.
|
globs_expanded = map(glob, patterns) |
This means that only single * searches in a specific directory are supported. By changing the glob function to support recursive, this would allow us to specify ** patterns to a directory instead of having to specify every sub-directory in the structure.
Reference:
https://github.com/python/cpython/blob/master/Lib/glob.py#L18
Even though glob supports it, glob support for recursive ** searching is not enabled when specifying package_data. This is not clear in the documentation.
setuptools/setuptools/command/build_py.py
Line 106 in a94ccbf
This means that only single
*searches in a specific directory are supported. By changing theglobfunction to support recursive, this would allow us to specify**patterns to a directory instead of having to specify every sub-directory in the structure.Reference:
https://github.com/python/cpython/blob/master/Lib/glob.py#L18