From 5d60ccefb48329b7cedfe6d78fc1cb95683104b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 12 Feb 2021 09:56:14 +0100 Subject: 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. --- _distutils_hack/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to '_distutils_hack/__init__.py') 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 -- cgit v1.2.1