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
This commit is contained in:
Victor Stinner 2022-11-03 19:27:27 +01:00 committed by GitHub
parent b07f546ea3
commit 0faa0ba240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
113 changed files with 26 additions and 22834 deletions

View file

@ -136,7 +136,6 @@ static const char* _Py_stdlib_module_names[] = {
"decimal",
"difflib",
"dis",
"distutils",
"doctest",
"email",
"encodings",