diff options
| author | Miro Hrončok <miro@hroncok.cz> | 2021-02-12 09:56:14 +0100 |
|---|---|---|
| committer | Miro Hrončok <miro@hroncok.cz> | 2021-03-08 12:15:11 +0100 |
| commit | 5d60ccefb48329b7cedfe6d78fc1cb95683104b6 (patch) | |
| tree | 0ef83d50c6a4f22adadf93cd3354fe5ec41b8b12 /_distutils_hack | |
| parent | e6fdc967a538c7c08768a4898317572a76de2f84 (diff) | |
| download | python-setuptools-git-5d60ccefb48329b7cedfe6d78fc1cb95683104b6.tar.gz | |
Filter out distutils deprecation warning until the situation is resolved
The distutils platform problems are likely to be resolved before the removal.
Once this happens, setuptools will no longer use distutils from the Python
standard library.
Diffstat (limited to '_distutils_hack')
| -rw-r--r-- | _distutils_hack/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py index c31edfed..47ce2494 100644 --- a/_distutils_hack/__init__.py +++ b/_distutils_hack/__init__.py @@ -8,6 +8,11 @@ import warnings is_pypy = '__pypy__' in sys.builtin_module_names +warnings.filterwarnings('ignore', + '.+ distutils .+ deprecated', + DeprecationWarning) + + def warn_distutils_present(): if 'distutils' not in sys.modules: return |
