Skip to content

Commit

Permalink
Announce the deprecation of imported distutils from stdlib. Ref #4137.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 24, 2023
1 parent 38f6560 commit 2832216
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _distutils_hack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def clear_distutils():
return
import warnings

warnings.warn("Setuptools is replacing distutils.")
warnings.warn(
"Setuptools is replacing distutils. Support for replacing "
"an already imported distutils is deprecated. In the future, "
"this condition will fail.",
)
mods = [
name
for name in sys.modules
Expand Down

0 comments on commit 2832216

Please sign in to comment.