mirror of
https://github.com/saltstack/salt.git
synced 2025-04-15 09:10:20 +00:00
Disable the setuptools user warning "Setuptools is replacing distutils."
Once we stop relying on distutils, this filter can be removed. Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
4e1bbec71d
commit
1b7fac1599
2 changed files with 10 additions and 0 deletions
|
@ -69,6 +69,14 @@ warnings.filterwarnings(
|
|||
append=True,
|
||||
)
|
||||
|
||||
# Filter the setuptools UserWarning until we stop relying on distutils
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
message="Setuptools is replacing distutils.",
|
||||
category=UserWarning,
|
||||
module="_distutils_hack",
|
||||
)
|
||||
|
||||
|
||||
def __define_global_system_encoding_variable__():
|
||||
import sys
|
||||
|
|
2
setup.py
2
setup.py
|
@ -4,6 +4,8 @@ The setup script for salt
|
|||
"""
|
||||
|
||||
# pylint: disable=file-perms,resource-leakage
|
||||
import setuptools # isort:skip
|
||||
|
||||
import contextlib
|
||||
import distutils.dist
|
||||
import glob
|
||||
|
|
Loading…
Add table
Reference in a new issue