From e91918d69443eb7ef1e1d84dca277965ef048ade Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Thu, 9 Jun 2022 13:55:39 +0100 Subject: [PATCH] Change warning about namespace packages and data files This follows a suggestion given by users to improve clarity. --- setuptools/command/build_py.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index 86847f0782..2fced3d6d5 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -263,9 +263,10 @@ class _IncludePackageDataAbuse: ############################ 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). + + {importable!r} has been automatically added to the distribution only + 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 the `packages` configuration field or the proper discovery methods