Terry J. Reedy <tjre...@udel.edu> added the comment:

Steve, PEP 632 lacks a reference to the SC acceptance thereof.  Could you add 
one?
https://mail.python.org/archives/list/python-...@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.

----------
nosy: +steve.dower, terry.reedy

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43425>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to