@@ -341,9 +341,21 @@ The ``BUTTON5_*`` constants are now exposed in the :mod:`curses` module if
341
341
they are provided by the underlying curses library.
342
342
(Contributed by Zackery Spytz in :issue:`39273 ` .)
343
343
344
+ .. _distutils- deprecated:
345
+
344
346
distutils
345
347
-------- -
346
348
349
+ The entire `` distutils`` package is deprecated, to be removed in Python
350
+ 3.12 . Its functionality for specifying package builds has already been
351
+ completely replaced by third- party packages `` setuptools`` and
352
+ `` packaging`` , and most other commonly used APIs are available elsewhere
353
+ in the standard library (such as :mod:`platform` , :mod:`shutil` ,
354
+ :mod:`subprocess` or :mod:`sysconfig` ). There are no plans to migrate
355
+ any other functionality from `` distutils`` , and applications that are
356
+ using other functions should plan to make private copies of the code.
357
+ Refer to :pep:`632 ` for discussion.
358
+
347
359
The `` bdist_wininst`` command deprecated in Python 3.8 has been removed.
348
360
The `` bdist_wheel`` command is now recommended to distribute binary packages
349
361
on Windows.
@@ -583,6 +595,10 @@ Deprecated
583
595
as appropriate to help identify code which needs updating during
584
596
this transition.
585
597
598
+ * The entire `` distutils`` namespace is deprecated, to be removed in
599
+ Python 3.12 . Refer to the :ref:`module changes < distutils- deprecated> `
600
+ section for more information.
601
+
586
602
* Non- integer arguments to :func:`random.randrange` are deprecated.
587
603
The :exc:`ValueError ` is deprecated in favor of a :exc:`TypeError ` .
588
604
(Contributed by Serhiy Storchaka and Raymond Hettinger in :issue:`37319 ` .)
0 commit comments