Uh oh!
There was an error while loading. Please reload this page.
[WIP] gh-92584: Rename the distutils package to _distutils - #92585
[WIP] gh-92584: Rename the distutils package to _distutils#92585vstinner wants to merge 17 commits into
Conversation
Rename Lib/distutils/ directory to Lib/_distutils/.
Keep _distutils.tests.support for peg_generator tests
Replace distutils.spawn.find_executable() with shutil.which().
vstinner
commented
May 9, 2022
test_tools and test_venv fail because of pip: pypa/pip#11103 |
vstinner
commented
May 9, 2022
By default, Temporary workaround: |
vstinner
commented
May 9, 2022
For now, this PR is a draft, and so I didn't write any documentation (no NEWS entry, no What's New in Python 3.12, etc.). |
vstinner
commented
May 9, 2022
|
vstinner
commented
May 10, 2022
Related issue: #92584 |
FFY00
left a comment
There was a problem hiding this comment.
This is correct, and seems like the best approach. We just have to fix pip.
tiran
commented
May 10, 2022
@erlend-aasland and I will have the last modules ported to |
vstinner
commented
May 10, 2022
See the issue #92584: peg_generator, c-analyzer tool and test_cppext still use distutils. I would prefer to not break them. |
vstinner
commented
Jun 17, 2022
I modified test_cppext to build the C++ extension with setuptools. So far, so good: it works on all buildbots. We can try a similar approach for test_peg_generator. Right now, test_peg_generator builds a library to make the test faster. I don't know how to port distutils code to setuptools. |
vstinner
commented
Jun 17, 2022
How is it going? Is this work tracked somewhere? For example, configure.ac mentions the array module, but setup.py still has code to build this extension. Is there a plan to remove the setup.py code, if the configure/Makefile code is enough? Or is there still a reason to keep the setup.py code? |
tiran
commented
Jun 17, 2022
I have created GH-93939 tl;dr every module that uses |
vstinner
commented
Jun 17, 2022
It seems like most core devs don't want to keep distutils hidden in the stdlib, but want to directly remove it. So I close my PR. Remaining steps are tracked by other issues. |
No description provided.