summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/__init__.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-01-29 21:48:55 (GMT)
committerGitHub <noreply@github.com>2021-01-29 21:48:55 (GMT)
commit62949f697fdefbf0c8bbba7a8354b9376afa35ba (patch)
treec4b2b672b663569d4a7d387e1d764adac446fb75 /Lib/distutils/__init__.py
parent6baaae589d596ed3bb668448f2a22c5f62fc5fdf (diff)
downloadcpython-62949f697fdefbf0c8bbba7a8354b9376afa35ba.zip
cpython-62949f697fdefbf0c8bbba7a8354b9376afa35ba.tar.gz
cpython-62949f697fdefbf0c8bbba7a8354b9376afa35ba.tar.bz2
bpo-41282: Add deprecation warning and docs for distutils (PEP 632) (GH-24355)
Diffstat (limited to 'Lib/distutils/__init__.py')
-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 d823d04..5ddb959 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)