mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
bpo-41282: Consistent message and filter warning in setup.py (GH-25571)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
c8666cfa7c
commit
a460ab3134
2 changed files with 11 additions and 3 deletions
12
setup.py
12
setup.py
|
@ -33,8 +33,16 @@ except ImportError:
|
|||
|
||||
with warnings.catch_warnings():
|
||||
# bpo-41282 (PEP 632) deprecated distutils but setup.py still uses it
|
||||
warnings.filterwarnings("ignore", "The distutils package is deprecated",
|
||||
DeprecationWarning)
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
"The distutils package is deprecated",
|
||||
DeprecationWarning
|
||||
)
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
"The distutils.sysconfig module is deprecated, use sysconfig instead",
|
||||
DeprecationWarning
|
||||
)
|
||||
|
||||
from distutils import log
|
||||
from distutils.command.build_ext import build_ext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue