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

@ -157,7 +157,7 @@ functions.
- Threading is disabled by default. The ``configure`` option
``--enable-wasm-pthreads`` adds compiler flag ``-pthread`` and
linker flags ``-sUSE_PTHREADS -sPROXY_TO_PTHREAD``.
linker flags ``-sUSE_PTHREADS -sPROXY_TO_PTHREAD``.
- pthread support requires WASM threads and SharedArrayBuffer (bulk memory).
The Node.JS runtime keeps a pool of web workers around. Each web worker
uses several file descriptors (eventfd, epoll, pipe).
@ -203,7 +203,7 @@ functions.
- The interactive shell does not handle copy 'n paste and unicode support
well.
- The bundled stdlib is limited. Network-related modules,
distutils, multiprocessing, dbm, tests and similar modules
multiprocessing, dbm, tests and similar modules
are not shipped. All other modules are bundled as pre-compiled
``pyc`` files.
- In-memory file system (MEMFS) is not persistent and limited.

View file

@ -41,7 +41,6 @@ OMIT_FILES = (
"ensurepip/",
"venv/",
# build system
"distutils/",
"lib2to3/",
# deprecated
"asyncore.py",