From dee6a1de96293042f289d07de8f2f56e6e6b3a0c Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 11 Jun 2021 23:00:55 +0100 Subject: [PATCH] PEP 632: Improve formatting and fix link --- pep-0632.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pep-0632.rst b/pep-0632.rst index caab4199f99..3f225d4e79e 100644 --- a/pep-0632.rst +++ b/pep-0632.rst @@ -172,15 +172,15 @@ For these modules or types, ``setuptools`` is the best substitute: For these modules or types, use the standards-defined Python Packaging Authority packages specified: -* ``distutils.version`` - use ``packaging`` +* ``distutils.version`` — use the ``packaging`` package For these modules or functions, use the standard library module shown: -* ``distutils.fancy_getopt`` - use ``argparse`` -* ``distutils.spawn.find_executable`` - use ``shutil.which`` -* ``distutils.spawn.spawn`` - use ``subprocess.run`` -* ``distutils.sysconfig`` - use ``sysconfig`` -* ``distutils.util.get_platform`` - use ``platform`` +* ``distutils.fancy_getopt`` — use the ``argparse`` module +* ``distutils.spawn.find_executable`` — use the ``shutil.which`` function +* ``distutils.spawn.spawn`` — use the ``subprocess.run`` function +* ``distutils.sysconfig`` — use the ``sysconfig`` module +* ``distutils.util.get_platform`` — use the ``platform`` module For these functions, and any others not mentioned here, you will need to reimplement the functionality yourself. The legacy documentation @@ -251,7 +251,7 @@ References (https://www.python.org/dev/peps/pep-0517/) .. [5] Porting from Distutils - (https://setuptools.readthedocs.io/en/latest/distutils-legacy.html) + (https://setuptools.readthedocs.io/en/latest/deprecated/distutils-legacy.html) .. [6] Packaging (numpy.distutils) (https://numpy.org/doc/stable/reference/distutils.html)