diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-18 11:33:49 +0100 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-18 12:07:44 +0100 |
commit | 89173d2f8e88e9fc735806a237215f50df72e962 (patch) | |
tree | 250dc584ec3cdfb36cefcaec35d8ba232cb29d6c /setuptools/command/build_py.py | |
parent | b4164438c8927b9f7593bd543475dd3010d7b3b1 (diff) | |
download | python-setuptools-git-89173d2f8e88e9fc735806a237215f50df72e962.tar.gz |
Improve warning message for _IncludePackageDataAbuse
Diffstat (limited to 'setuptools/command/build_py.py')
-rw-r--r-- | setuptools/command/build_py.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index 91f47416..f3d43c56 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -256,6 +256,7 @@ class _IncludePackageDataAbuse: """Inform users that package or module is included as 'data file'""" MESSAGE = """\ + Installing {importable!r} as data is deprecated, please list it as `package`. !!\n\n ############################ # Package would be ignored # @@ -266,7 +267,9 @@ class _IncludePackageDataAbuse: 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. + setuptools' `packages` configuration field or the proper discovery methods + (for example by using `find_namespace_packages(...)`/`find_namespace:` + instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. |