Skip to content

Commit d58be48

Browse files
authored
gh-85454: Remove links from historical mentions of distutils (GH-95192)
1 parent df7c8b9 commit d58be48

13 files changed

+28
-28
lines changed

Doc/distributing/index.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ Key terms
4141
file format standards. They maintain a variety of tools, documentation
4242
and issue trackers on both `GitHub <https://github.com/pypa>`__ and
4343
`Bitbucket <https://bitbucket.org/pypa/>`__.
44-
* :mod:`distutils` is the original build and distribution system first added
45-
to the Python standard library in 1998. While direct use of :mod:`distutils`
44+
* ``distutils`` is the original build and distribution system first added
45+
to the Python standard library in 1998. While direct use of ``distutils``
4646
is being phased out, it still laid the foundation for the current packaging
4747
and distribution infrastructure, and it not only remains part of the
4848
standard library, but its name lives on in other ways (such as the name
4949
of the mailing list used to coordinate Python packaging standards
5050
development).
51-
* `setuptools`_ is a (largely) drop-in replacement for :mod:`distutils` first
51+
* `setuptools`_ is a (largely) drop-in replacement for ``distutils`` first
5252
published in 2004. Its most notable addition over the unmodified
53-
:mod:`distutils` tools was the ability to declare dependencies on other
53+
``distutils`` tools was the ability to declare dependencies on other
5454
packages. It is currently recommended as a more regularly updated
55-
alternative to :mod:`distutils` that offers consistent support for more
55+
alternative to ``distutils`` that offers consistent support for more
5656
recent packaging standards across a wide range of Python versions.
5757
* `wheel`_ (in this context) is a project that adds the ``bdist_wheel``
58-
command to :mod:`distutils`/`setuptools`_. This produces a cross platform
58+
command to ``distutils``/`setuptools`_. This produces a cross platform
5959
binary packaging format (called "wheels" or "wheel files" and defined in
6060
:pep:`427`) that allows Python libraries, even those including binary
6161
extensions, to be installed on a system without needing to be built

Doc/whatsnew/2.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ packages, which made administering a Python installation something of a chore.
820820

821821
The SIG for distribution utilities, shepherded by Greg Ward, has created the
822822
Distutils, a system to make package installation much easier. They form the
823-
:mod:`distutils` package, a new part of Python's standard library. In the best
823+
``distutils`` package, a new part of Python's standard library. In the best
824824
case, installing a Python module from source will require the same steps: first
825825
you simply mean unpack the tarball or zip archive, and the run "``python
826826
setup.py install``". The platform will be automatically detected, the compiler

Doc/whatsnew/3.2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ information:
20562056
such as "3.2".
20572057

20582058
It also provides access to the paths and variables corresponding to one of
2059-
seven named schemes used by :mod:`distutils`. Those include *posix_prefix*,
2059+
seven named schemes used by ``distutils``. Those include *posix_prefix*,
20602060
*posix_home*, *posix_user*, *nt*, *nt_user*, *os2*, *os2_home*:
20612061

20622062
* :func:`~sysconfig.get_paths` makes a dictionary containing installation paths

Doc/whatsnew/3.5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ Both the ``build`` and ``build_ext`` commands now accept a ``-j`` option to
10791079
enable parallel building of extension modules.
10801080
(Contributed by Antoine Pitrou in :issue:`5309`.)
10811081

1082-
The :mod:`distutils` module now supports ``xz`` compression, and can be
1082+
The ``distutils`` module now supports ``xz`` compression, and can be
10831083
enabled by passing ``xztar`` as an argument to ``bdist --format``.
10841084
(Contributed by Serhiy Storchaka in :issue:`16314`.)
10851085

Doc/whatsnew/3.6.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ distutils
10121012
---------
10131013

10141014
The ``default_format`` attribute has been removed from
1015-
:class:`distutils.command.sdist.sdist` and the ``formats``
1015+
``distutils.command.sdist.sdist`` and the ``formats``
10161016
attribute defaults to ``['gztar']``. Although not anticipated,
10171017
any code relying on the presence of ``default_format`` may
10181018
need to be adapted. See :issue:`27819` for more details.
@@ -1986,7 +1986,7 @@ distutils
19861986
~~~~~~~~~
19871987

19881988
The undocumented ``extra_path`` argument to the
1989-
:class:`~distutils.Distribution` constructor is now considered deprecated
1989+
``distutils.Distribution`` constructor is now considered deprecated
19901990
and will raise a warning if set. Support for this parameter will be
19911991
removed in a future Python release. See :issue:`27919` for details.
19921992

@@ -2243,7 +2243,7 @@ Changes in the Python API
22432243
accepting additional keyword arguments will need to adjust their calls to
22442244
:meth:`type.__new__` (whether direct or via :class:`super`) accordingly.
22452245

2246-
* In :class:`distutils.command.sdist.sdist`, the ``default_format``
2246+
* In ``distutils.command.sdist.sdist``, the ``default_format``
22472247
attribute has been removed and is no longer honored. Instead, the
22482248
gzipped tarfile format is the default on all platforms and no
22492249
platform-specific selection is made.

Doc/whatsnew/3.7.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ Other CPython Implementation Changes
19061906
variables were defined. Previously, the order was undefined.
19071907
(Contributed by Raymond Hettinger in :issue:`32690`.)
19081908

1909-
* The :mod:`distutils` ``upload`` command no longer tries to change CR
1909+
* The ``distutils`` ``upload`` command no longer tries to change CR
19101910
end-of-line characters to CRLF. This fixes a corruption issue with sdists
19111911
that ended with a byte equivalent to CR.
19121912
(Contributed by Bo Bayles in :issue:`32304`.)
@@ -2181,7 +2181,7 @@ The following features and APIs have been removed from Python 3.7:
21812181
:func:`ssl.wrap_socket` or :class:`ssl.SSLContext`.
21822182
(Contributed by Christian Heimes in :issue:`32951`.)
21832183

2184-
* The unused :mod:`distutils` ``install_misc`` command has been removed.
2184+
* The unused ``distutils`` ``install_misc`` command has been removed.
21852185
(Contributed by Eric N. Vander Weele in :issue:`29218`.)
21862186

21872187

Misc/NEWS.d/3.10.0a1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,7 @@ Handle cases where the ``end_lineno`` is ``None`` on
22042204
.. nonce: zwl5Hc
22052205
.. section: Library
22062206
2207-
:mod:`distutils` upload creates SHA2-256 and Blake2b-256 digests. MD5
2207+
``distutils`` upload creates SHA2-256 and Blake2b-256 digests. MD5
22082208
digests is skipped if platform blocks MD5.
22092209

22102210
..

Misc/NEWS.d/3.10.0b1.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ name>`` instead of ``SQL logic error``. Patch by Erlend E. Aasland.
11421142
.. nonce: GK9a0l
11431143
.. section: Library
11441144
1145-
Install schemes in :mod:`distutils.command.install` are now loaded from
1145+
Install schemes in ``distutils.command.install`` are now loaded from
11461146
:mod:`sysconfig`.
11471147

11481148
..
@@ -1152,7 +1152,7 @@ Install schemes in :mod:`distutils.command.install` are now loaded from
11521152
.. nonce: SenEje
11531153
.. section: Library
11541154
1155-
:mod:`distutils.sysconfig` has been merged to :mod:`sysconfig`.
1155+
``distutils.sysconfig`` has been merged to :mod:`sysconfig`.
11561156

11571157
..
11581158

Misc/NEWS.d/3.11.0a1.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ asynchronous.
14451445
.. nonce: NOwcDJ
14461446
.. section: Library
14471447
1448-
Fix clang rpath issue in :mod:`distutils`. The UnixCCompiler now uses
1448+
Fix clang rpath issue in ``distutils``. The UnixCCompiler now uses
14491449
correct clang option to add a runtime library directory (rpath) to a shared
14501450
library.
14511451

@@ -2798,7 +2798,7 @@ documentation for deprecations.
27982798
.. nonce: rvyf2v
27992799
.. section: Library
28002800
2801-
Restore back :func:`parse_makefile` in :mod:`distutils.sysconfig` because it
2801+
Restore back :func:`parse_makefile` in ``distutils.sysconfig`` because it
28022802
behaves differently than the similar implementation in :mod:`sysconfig`.
28032803

28042804
..

Misc/NEWS.d/3.8.0a1.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ malicious or buggy certificate can result into segfault. Vulnerability
1717
.. section: Security
1818
1919
The :option:`-I` command line option (run Python in isolated mode) is now
20-
also copied by the :mod:`multiprocessing` and :mod:`distutils` modules when
20+
also copied by the :mod:`multiprocessing` and ``distutils`` modules when
2121
spawning child processes. Previously, only :option:`-E` and :option:`-s`
2222
options (enabled by :option:`-I`) were copied.
2323

@@ -2270,7 +2270,7 @@ last release was in 2000. Mac OS 9 last release was in 2001.
22702270
.. nonce: laV_IE
22712271
.. section: Library
22722272
2273-
:func:`~distutils.utils.check_environ` of :mod:`distutils.utils` now catches
2273+
:func:`~distutils.utils.check_environ` of ``distutils.utils`` now catches
22742274
:exc:`KeyError` on calling :func:`pwd.getpwuid`: don't create the ``HOME``
22752275
environment variable in this case.
22762276

@@ -3070,7 +3070,7 @@ Add deprecation warning when `loop` is used in methods: `asyncio.sleep`,
30703070
.. nonce: Pr3-iG
30713071
.. section: Library
30723072
3073-
ZIP files created by :mod:`distutils` will now include entries for
3073+
ZIP files created by ``distutils`` will now include entries for
30743074
directories.
30753075

30763076
..
@@ -3720,7 +3720,7 @@ Deprecate passing non-ThreadPoolExecutor instances to
37203720
.. section: Library
37213721
37223722
Restore ``msilib.Win64`` to preserve backwards compatibility since it's
3723-
already used by :mod:`distutils`' ``bdist_msi`` command.
3723+
already used by ``distutils``' ``bdist_msi`` command.
37243724

37253725
..
37263726

Misc/NEWS.d/3.8.0a4.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ unexpected cache miss.
338338
.. nonce: MW1TLt
339339
.. section: Library
340340
341-
Fix :mod:`distutils.sysconfig` if :data:`sys.executable` is ``None`` or an
341+
Fix ``distutils.sysconfig`` if :data:`sys.executable` is ``None`` or an
342342
empty string: use :func:`os.getcwd` to initialize ``project_base``. Fix
343343
also the distutils build command: don't use :data:`sys.executable` if it is
344344
``None`` or an empty string.
@@ -350,7 +350,7 @@ also the distutils build command: don't use :data:`sys.executable` if it is
350350
.. nonce: Fg4EXb
351351
.. section: Library
352352
353-
:func:`shutil.which` and :func:`distutils.spawn.find_executable` now use
353+
:func:`shutil.which` and ``distutils.spawn.find_executable`` now use
354354
``os.confstr("CS_PATH")`` if available instead of :data:`os.defpath`, if the
355355
``PATH`` environment variable is not set. Moreover, don't use
356356
``os.confstr("CS_PATH")`` nor :data:`os.defpath` if the ``PATH`` environment

Misc/NEWS.d/3.9.0a5.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ connections.
623623
.. nonce: 5a822c
624624
.. section: Library
625625
626-
Reimplement :func:`distutils.spawn.spawn` function with the
626+
Reimplement ``distutils.spawn.spawn`` function with the
627627
:mod:`subprocess` module.
628628

629629
..
@@ -1022,7 +1022,7 @@ lock-related objects from :mod:`threading`) around 49-day uptime.
10221022
.. nonce: MnHdYl
10231023
.. section: Windows
10241024
1025-
:mod:`distutils` will no longer statically link :file:`vcruntime140.dll`
1025+
``distutils`` will no longer statically link :file:`vcruntime140.dll`
10261026
when a redistributable version is unavailable. All future releases of
10271027
CPython will include a copy of this DLL to ensure distributed extensions can
10281028
continue to load.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
C extension modules are now built by ``configure`` and ``make``
2-
instead of :mod:`distutils` and ``setup.py``.
2+
instead of ``distutils`` and ``setup.py``.

0 commit comments

Comments
 (0)