aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-01-29 21:48:55 +0000
committerGitHub <noreply@github.com>2021-01-29 21:48:55 +0000
commit62949f697fdefbf0c8bbba7a8354b9376afa35ba (patch)
treec4b2b672b663569d4a7d387e1d764adac446fb75 /Lib
parentFixing typos in turtle.rst (GH-24376) (diff)
downloadcpython-62949f697fdefbf0c8bbba7a8354b9376afa35ba.tar.gz
cpython-62949f697fdefbf0c8bbba7a8354b9376afa35ba.tar.bz2
cpython-62949f697fdefbf0c8bbba7a8354b9376afa35ba.zip
bpo-41282: Add deprecation warning and docs for distutils (PEP 632) (GH-24355)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/__init__.py b/Lib/distutils/__init__.py
index d823d040a1c..5ddb9592380 100644
--- a/Lib/distutils/__init__.py
+++ b/Lib/distutils/__init__.py
@@ -9,5 +9,11 @@ used from a setup script as
"""
import sys
+import warnings
__version__ = sys.version[:sys.version.index(' ')]
+
+warnings.warn("The distutils package deprecated and slated for "
+ "removal in Python 3.12. Use setuptools or check "
+ "PEP 632 for potential alternatives",
+ DeprecationWarning)