The distutils module was deprecated in Python 3.10 and is scheduled for removal in Python 3.12.
Right now, Python still uses distutils for different purpose:
- Build C extensions which can not be built by Makefile yet. Python 3.11 can build way more C extensions with Makefile than Python 3.10.
- peg_generator uses distutils to build C extensions.
- test_cppext uses distutils to check that the Python C API can be used in C++.
Tools/c-analyzer/ uses distutils to get a C preprocessor.
Until Python can be built and used without distutils, I propose to first rename the distutils package to _distutils: rename th Lib/distutils/ directory to Lib/_distutils/.
Right now, test_venv fails without distutils, because pip fails on importing the distutils module in pip/_internal/locations/_distutils.py: https://github.com/pypa/pip/blob/cb24fb4052ca8ab8009866b0de61980c81a7e13c/src/pip/_internal/locations/_distutils.py#L9-L12
I created the PR #92585 which renames distutils to _distutils.
The distutils module was deprecated in Python 3.10 and is scheduled for removal in Python 3.12.
Right now, Python still uses distutils for different purpose:
Tools/c-analyzer/uses distutils to get a C preprocessor.Until Python can be built and used without distutils, I propose to first rename the
distutilspackage to_distutils: rename thLib/distutils/directory toLib/_distutils/.Right now, test_venv fails without distutils, because pip fails on importing the distutils module in
pip/_internal/locations/_distutils.py: https://github.com/pypa/pip/blob/cb24fb4052ca8ab8009866b0de61980c81a7e13c/src/pip/_internal/locations/_distutils.py#L9-L12I created the PR #92585 which renames distutils to _distutils.
importlib.metadatadocs #108026site.USER_BASE#108031site.USER_BASE(GH-108031) #108039PYTHONUSERBASE#108040cx_Freeze's description #108047cx_Freeze's description (GH-108047) #108057PYTHONUSERBASE(GH-108040) #108060cx_Freeze's description (GH-108047) #108061