summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2021-11-05 14:14:29 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2021-11-05 14:14:29 +0000
commite2220331136c3a60b8d70a6b4eaad05816c9b637 (patch)
tree0bfaebe8c48a8645ee1fb897519f0d69241dcbc1 /setuptools/command/egg_info.py
parentf359b8a7608c7f118710af02cb5edab4e6abb942 (diff)
downloadpython-setuptools-git-e2220331136c3a60b8d70a6b4eaad05816c9b637.tar.gz
Use warning instead of log for distutils command
As discussed in #2855, using an actual warning instead of the logger allow users to control what gets displayed via warning filters.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rw-r--r--setuptools/command/egg_info.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 8ae27d87..f2210292 100644
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -621,10 +621,11 @@ class manifest_maker(sdist):
if hasattr(build_py, 'get_data_files_without_manifest'):
return build_py.get_data_files_without_manifest()
- log.warn(
+ warnings.warn(
"Custom 'build_py' does not implement "
"'get_data_files_without_manifest'.\nPlease extend command classes"
- " from setuptools instead of distutils."
+ " from setuptools instead of distutils.",
+ SetuptoolsDeprecationWarning
)
return build_py.get_data_files()