From 0f278396f412cd87fed8904ac942e5c0aeae526a Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 12 Jun 2021 16:06:50 +0100 Subject: [PATCH] PEP 632: Improve formatting and fix link (#1990) --- pep-0632.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pep-0632.rst b/pep-0632.rst index caab4199f..3f225d4e7 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)