Skip to content

Commit c0eae60

Browse files
authored
Improve warning message for include_package_data abuse (#3345)
2 parents 499c468 + bb0eb4e commit c0eae60

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

setuptools/command/build_py.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,14 @@ class _IncludePackageDataAbuse:
261261
############################
262262
# Package would be ignored #
263263
############################
264-
Python recognizes {importable!r} as an importable package, however it is
265-
included in the distribution as "data".
266-
This behavior is likely to change in future versions of setuptools (and
267-
therefore is considered deprecated).
264+
Python recognizes {importable!r} as an importable package,
265+
but it is not listed in the `packages` configuration of setuptools.
266+
Currently {importable!r} is only added to the distribution because it may
267+
contain data files, but this behavior is likely to change in future
268+
versions of setuptools (and therefore is considered deprecated).
268269
269270
Please make sure that {importable!r} is included as a package by using
270-
setuptools' `packages` configuration field or the proper discovery methods
271+
the `packages` configuration field or the proper discovery methods
271272
(for example by using `find_namespace_packages(...)`/`find_namespace:`
272273
instead of `find_packages(...)`/`find:`).
273274

0 commit comments

Comments
 (0)