Skip to content

Commit

Permalink
Improve warning message for package data abuse
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jun 5, 2022
1 parent 499c468 commit bb0eb4e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setuptools/command/build_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:`).
Expand Down

0 comments on commit bb0eb4e

Please sign in to comment.