This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients pablogsal, steve.dower, terry.reedy, xtreak
Date 2021-03-13.00:39:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615595995.85.0.941785278769.issue43425@roundup.psfhosted.org>
In-reply-to
Content
Steve, PEP 632 lacks a reference to the SC acceptance thereof.  Could you add one?
https://mail.python.org/archives/list/python-dev@python.org/thread/TXU6TVOMBLQU3SV57DMMOA5Y2E67AW7P/
And can you verify my interpretation below?

The warning is correct as to removal.  PEP 632 says, perhaps a bit tersely, that when the 3.11 branch is established for 3.11.0b1 and master/main becomes the 3.12.0a development branch, disutils/* be no longer be installed as part of the stdlib (ie, in /Lib).  At that point, 'import disutils' will cease working in installed CPython, outside of a cpython repository.  Although this could be worked around by catching the import error and skipping disutils-dependent tests, the dependency should better be removed, if possible, before 3.12.0a.

The PEP gives no timetable for doing so, and anticipates separate PRs like this.

It further says that when "the CPython build process no longer depends on distutils being in the standard library, the entire Lib/distutils directory and Lib/test/test_distutils.py file will be removed from the repository."  Leaving it deprecated but present was rejected.

Part of the extensive discussion at https://discuss.python.org/t/pep-632-deprecate-distutils-module/5134/128 was about possibly putting parts of disutiles under /Tools and replacing 'import disutils' with a reference to <python dir>/Tools/distutiles/whatever.  If this is done for tests, the access and use has to be conditional.  Our Windows installer only installs 4 or 21 Tools subdirectories thought appropriate for uses and others may include less, and maybe omit Tools altogether.

Karthikeyan posted the opening of this and another issue 5 days ago on #41281, with no comment so far.
History
Date User Action Args
2021-03-13 00:39:55terry.reedysetrecipients: + terry.reedy, steve.dower, pablogsal, xtreak
2021-03-13 00:39:55terry.reedysetmessageid: <1615595995.85.0.941785278769.issue43425@roundup.psfhosted.org>
2021-03-13 00:39:55terry.reedylinkissue43425 messages
2021-03-13 00:39:55terry.reedycreate