diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py index 47ce24944b..5f40996a67 100644 --- a/_distutils_hack/__init__.py +++ b/_distutils_hack/__init__.py @@ -9,7 +9,7 @@ warnings.filterwarnings('ignore', - '.+ distutils .+ deprecated', + r'.+ distutils\b.+ deprecated', DeprecationWarning) diff --git a/changelog.d/2664.misc.rst b/changelog.d/2664.misc.rst new file mode 100644 index 0000000000..5ebad038b9 --- /dev/null +++ b/changelog.d/2664.misc.rst @@ -0,0 +1 @@ +Relax the deprecation message in the distutils hack.