Skip to content

Commit

Permalink
Filter out distutils deprecation warning until the situation is resolved
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hroncok committed Mar 8, 2021
1 parent e6fdc96 commit 5d60cce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _distutils_hack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
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
Expand Down

0 comments on commit 5d60cce

Please sign in to comment.