summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-11-03 18:27:27 (GMT)
committerGitHub <noreply@github.com>2022-11-03 18:27:27 (GMT)
commit0faa0ba240e815614e5a2900e48007acac41b214 (patch)
tree20b8346df4331716aba051d6e05e039318176ba3 /Doc
parentb07f546ea3a574bc3016fb023c157c65a47f4849 (diff)
downloadcpython-0faa0ba240e815614e5a2900e48007acac41b214.zip
cpython-0faa0ba240e815614e5a2900e48007acac41b214.tar.gz
cpython-0faa0ba240e815614e5a2900e48007acac41b214.tar.bz2
gh-92584: Remove the distutils package (#99061)
Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils
Diffstat (limited to 'Doc')
-rw-r--r--Doc/conf.py1
-rw-r--r--Doc/whatsnew/3.12.rst8
2 files changed, 8 insertions, 1 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index be1c9ff..6fad5c6 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -197,7 +197,6 @@ epub_publisher = 'Python Software Foundation'
coverage_ignore_modules = [
r'[T|t][k|K]',
r'Tix',
- r'distutils.*',
]
coverage_ignore_functions = [
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 91aef44..b6daa6d 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -70,6 +70,8 @@ Important deprecations, removals or restrictions:
* :pep:`623`, Remove wstr from Unicode
+* :pep:`632`, Remove the ``distutils`` package.
+
Improved Error Messages
=======================
@@ -401,6 +403,12 @@ although there is currently no date scheduled for their removal.
Removed
=======
+* Remove the ``distutils`` package. It was deprecated in Python 3.10 by
+ :pep:`632` "Deprecate distutils module". For projects still using
+ ``distutils`` and cannot be updated to something else, the ``setuptools``
+ project can be installed: it still provides ``distutils``.
+ (Contributed by Victor Stinner in :gh:`92584`.)
+
* Removed many old deprecated :mod:`unittest` features:
- A number of :class:`~unittest.TestCase` method aliases: