
If we're not shipping it, we should just move it out of the way. Otherwise, there are a few places in the various Windows packages that will need it to be explicitly excluded. We should already have similar exclusions for the test suite and a few other modules, but they're a bit scattered around PC, PCbuild and Tools/msi. Easier to just remove it from Lib. Cheers, Steve On 5/10/2022 9:24 PM, Victor Stinner wrote:
On Tue, May 10, 2022 at 6:16 PM Steve Dower <steve.dower@python.org> wrote:
I agree. The internal tools that use it are all in our Tools directory, so we can move distutils there and explicitly add an import path to locate it. No need to keep it in the stdlib (Lib/) at all.
Migrating to Makefile builds is probably better long-term, but not as important as moving distutils out from the stdlib so that setuptools can rely on their copy being the "main" one.
With my current PR, Lib/_distutils/ is not installed by "make install". Moving it to Tools/ would also work.
Victor