PEP 632: Improve formatting and fix link (#1990)

This commit is contained in:
Steve Dower 2021-06-12 16:06:50 +01:00 committed by GitHub
parent 0bc330a6f1
commit 0f278396f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -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 For these modules or types, use the standards-defined Python Packaging
Authority packages specified: Authority packages specified:
* ``distutils.version`` - use ``packaging`` * ``distutils.version`` — use the ``packaging`` package
For these modules or functions, use the standard library module shown: For these modules or functions, use the standard library module shown:
* ``distutils.fancy_getopt`` - use ``argparse`` * ``distutils.fancy_getopt`` — use the ``argparse`` module
* ``distutils.spawn.find_executable`` - use ``shutil.which`` * ``distutils.spawn.find_executable`` — use the ``shutil.which`` function
* ``distutils.spawn.spawn`` - use ``subprocess.run`` * ``distutils.spawn.spawn`` — use the ``subprocess.run`` function
* ``distutils.sysconfig`` - use ``sysconfig`` * ``distutils.sysconfig`` — use the ``sysconfig`` module
* ``distutils.util.get_platform`` - use ``platform`` * ``distutils.util.get_platform`` — use the ``platform`` module
For these functions, and any others not mentioned here, you will need For these functions, and any others not mentioned here, you will need
to reimplement the functionality yourself. The legacy documentation to reimplement the functionality yourself. The legacy documentation
@ -251,7 +251,7 @@ References
(https://www.python.org/dev/peps/pep-0517/) (https://www.python.org/dev/peps/pep-0517/)
.. [5] Porting from Distutils .. [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) .. [6] Packaging (numpy.distutils)
(https://numpy.org/doc/stable/reference/distutils.html) (https://numpy.org/doc/stable/reference/distutils.html)