Skip to content

Commit 485de0e

Browse files
authored
Merge branch 'main' into main
2 parents 42268c4 + a464fc7 commit 485de0e

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

source/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Glossary
208208
Source Distribution (or "sdist")
209209

210210
A :term:`distribution <Distribution Package>` format (usually generated
211-
using ``python setup.py sdist``) that provides metadata and the
211+
using ``python -m build --sdist``) that provides metadata and the
212212
essential source files needed for installing by a tool like :ref:`pip`,
213213
or for generating a :term:`Built Distribution`.
214214

source/guides/distributing-packages-using-setuptools.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ Each file name in ``files`` is interpreted relative to the :file:`setup.py`
484484
script at the top of the project source distribution.
485485

486486
For more information see the distutils section on :ref:`Installing Additional Files
487-
<python:distutils-additional-files>`.
487+
<setuptools:distutils-additional-files>`.
488488

489489
.. note::
490490

@@ -498,7 +498,7 @@ For more information see the distutils section on :ref:`Installing Additional Fi
498498
~~~~~~~~~~~
499499

500500
Although ``setup()`` supports a :ref:`scripts
501-
<python:distutils-installing-scripts>`
501+
<setuptools:distutils-installing-scripts>`
502502
keyword for pointing to pre-made scripts to install, the recommended approach to
503503
achieve cross-platform compatibility is to use :ref:`console_scripts` entry
504504
points (see below).

source/guides/dropping-older-python-versions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ metadata values based on the argument you provide in ``python_requires``.
102102

103103
Within a Python source package (the zip or the tar-gz file you download) is a text file called PKG-INFO.
104104

105-
This file is generated by Distutils or :ref:`setuptools` when it generates the source package.
105+
This file is generated by :ref:`distutils` or :ref:`setuptools` when it generates the source package.
106106
The file contains a set of keys and values, the list of keys is part of the PyPa standard metadata format.
107107

108108
You can see the contents of the generated file like this:

source/guides/tool-recommendations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ migration, and what settings to change in your clients.
9393
:ref:`virtualenv`. However, using :ref:`virtualenv` will still be
9494
recommended for users that need cross-version consistency.
9595
96-
.. [5] Although you can use pure ``distutils`` for many projects, it does not
96+
.. [5] Although you can use pure :ref:`distutils` for many projects, it does not
9797
support defining dependencies on other projects and is missing several
9898
convenience utilities for automatically populating distribution metadata
9999
correctly that are provided by ``setuptools``. Being outside the

source/key_projects.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,21 +676,20 @@ build of the Python distribution.
676676
distutils
677677
=========
678678

679-
`Docs <https://docs.python.org/3/library/distutils.html>`__ |
680-
`Issues <https://bugs.python.org/>`__
681-
682679
The original Python packaging system, added to the standard library in
683680
Python 2.0.
684681

685682
Due to the challenges of maintaining a packaging system
686683
where feature updates are tightly coupled to language runtime updates,
687-
direct usage of :ref:`distutils` is now actively discouraged, with
684+
direct usage of :ref:`distutils` has been actively discouraged, with
688685
:ref:`Setuptools` being the preferred replacement. :ref:`Setuptools`
689686
not only provides features that plain :ref:`distutils` doesn't offer
690687
(such as dependency declarations and entry point declarations), it
691688
also provides a consistent build interface and feature set across all
692689
supported Python versions.
693690

691+
Consequently, :ref:`distutils` was deprecated in Python 3.10 by :pep:`632` and
692+
has been :doc:`removed <python:whatsnew/3.12>` from the standard library in Python 3.12.
694693

695694
.. _venv:
696695

source/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ you can use Python's native packaging tools to create a *source*
9595
Python's *sdists* are compressed archives (``.tar.gz`` files)
9696
containing one or more packages or modules. If your code is
9797
pure-Python, and you only depend on other Python packages, you can
98-
:doc:`go here to learn more <python:distutils/sourcedist>`.
98+
go to the :ref:`source-distribution-format` specification to learn more.
9999

100100
If you rely on any non-Python code, or non-Python packages (such as
101101
`libxml2 <https://en.wikipedia.org/wiki/Libxml2>`_ in the case of

source/specifications/platform-compatibility-tags.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ decide how to best use the ABI tag.
9292
Platform Tag
9393
------------
9494

95-
The platform tag is simply ``distutils.util.get_platform()`` with all
95+
The platform tag is simply ``sysconfig.get_platform()`` with all
9696
hyphens ``-`` and periods ``.`` replaced with underscore ``_``.
97+
Until the removal of :ref:`distutils` in Python 3.12, this
98+
was ``distutils.util.get_platform()``.
9799

98100
* win32
99101
* linux_i386

0 commit comments

Comments
 (0)