diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-05 11:07:35 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-05 11:07:35 +0100 |
| commit | bb0eb4ebf8d289c6c37926bfadd44fe78548c01a (patch) | |
| tree | 8fdbf9699a356d0f6d42fa978d8ec680d94f3112 /setuptools/command/build_py.py | |
| parent | 499c468a57d240e5bb450bdb6daedc3e559541dd (diff) | |
| download | python-setuptools-git-bb0eb4ebf8d289c6c37926bfadd44fe78548c01a.tar.gz | |
Improve warning message for package data abuse
Diffstat (limited to 'setuptools/command/build_py.py')
| -rw-r--r-- | setuptools/command/build_py.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index d2ccb514..86847f07 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -261,13 +261,14 @@ class _IncludePackageDataAbuse: ############################ # Package would be ignored # ############################ - Python recognizes {importable!r} as an importable package, however it is - included in the distribution as "data". - This behavior is likely to change in future versions of setuptools (and - therefore is considered deprecated). + Python recognizes {importable!r} as an importable package, + but it is not listed in the `packages` configuration of setuptools. + Currently {importable!r} is only added to the distribution because it may + contain data files, but this behavior is likely to change in future + versions of setuptools (and therefore is considered deprecated). Please make sure that {importable!r} is included as a package by using - setuptools' `packages` configuration field or the proper discovery methods + the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). |
