Skip to content

Commit 92c6de7

Browse files
committed
Update text with distutils deprecation
1 parent ab037f3 commit 92c6de7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/tutorials/packaging-projects.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,16 +329,17 @@ be required, but can be omitted with newer versions of setuptools and pip.
329329
There are many more than the ones mentioned here. See
330330
:doc:`/guides/distributing-packages-using-setuptools` for more details.
331331

332-
.. note::
332+
.. warning::
333333

334334
You may see some existing projects or other Python packaging tutorials that
335335
import their ``setup`` function from ``distutils.core`` rather than
336336
``setuptools``. This is a `legacy approach`_ that installers [1]_ support
337337
for backwards compatibility purposes, but using the legacy ``distutils`` API
338-
directly in new projects is strongly discouraged, as it means that newer
339-
build commands, like ``setup.py bdist_wheel``, won't work.
338+
directly in new projects is strongly discouraged, since ``distutils`` is
339+
deprecated as per :pep:`632` and will be removed from the standard library
340+
in Python 3.12.
340341

341-
.. _legacy approach: https://docs.python.org/3/library/distutils.html
342+
.. _legacy approach: https://docs.python.org/3.10/library/distutils.html
342343

343344
Creating README.md
344345
------------------

0 commit comments

Comments
 (0)