Skip to content

Commit 1ba4ec2

Browse files
committed
Use built distribution terminology for wheels
1 parent b1c7743 commit 1ba4ec2

9 files changed

Lines changed: 23 additions & 22 deletions

‎source/discussions/downstream-packaging.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Why?
5454
~~~~
5555

5656
The vast majority of downstream packagers prefer to build packages from source,
57-
rather than use the upstream-provided binary packages. In some cases, using
57+
rather than use the upstream-provided wheels. In some cases, using
5858
sources is actually required for the package to be included in the distribution.
5959
This is also true of pure Python packages that provide universal wheels.
6060
The reasons for using source distributions may include:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ sample project <https://github.com/pypa/sampleproject>`_ has removed its manifes
120120
file, since all the necessary files have been included by :ref:`setuptools` 43.0.0
121121
and newer.
122122

123-
.. note:: :file:`MANIFEST.in` does not affect binary distributions such as wheels.
123+
.. note:: :file:`MANIFEST.in` does not affect built distributions such as wheels.
124124

125125
LICENSE.txt
126126
~~~~~~~~~~~

‎source/guides/github-actions-ci-cd-sample/publish-to-pypi.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
pip install
2222
build
2323
--user
24-
- name: Build a binary wheel and a source tarball
24+
- name: Build a wheel and a source distribution
2525
run: python3 -m build
2626
- name: Store the distribution packages
2727
uses: actions/upload-artifact@v5

‎source/key_projects.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ distlib
7474
relate to packaging and distribution of Python software. ``distlib``
7575
implements several relevant PEPs (Python Enhancement Proposal
7676
standards) and is useful for developers of third-party packaging tools
77-
to make and upload binary and source :term:`distributions
77+
to make and upload built and source :term:`distributions
7878
<Distribution Package>`, achieve interoperability, resolve
7979
dependencies, manage package resources, and do other similar
8080
functions.
@@ -373,9 +373,9 @@ creating :term:`wheel distributions <Wheel>`. Additionally, it offers its own
373373
command line utility for creating and installing wheels.
374374

375375
See also `auditwheel <https://github.com/pypa/auditwheel>`__, a tool
376-
that package developers use to check and fix Python packages they are
377-
making in the binary wheel format. It provides functionality to
378-
discover dependencies, check metadata for compliance, and repair the
376+
that package developers use to check and fix wheels containing native code.
377+
It provides functionality to discover dependencies, check metadata for
378+
compliance, and repair the
379379
wheel and metadata to properly link and include external shared
380380
libraries in a package.
381381

‎source/overview.rst‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ advantages for pure-Python libraries.
112112
a drop-in replacement for PIL, just by changing your project's
113113
``install_requires`` or ``requirements.txt``.
114114

115-
Python binary distributions
116-
^^^^^^^^^^^^^^^^^^^^^^^^^^^
115+
.. _python-binary-distributions:
116+
117+
Python built distributions
118+
^^^^^^^^^^^^^^^^^^^^^^^^^^
117119

118120
So much of Python's practical power comes from its ability to
119121
integrate with the software ecosystem, in particular libraries written
@@ -126,7 +128,7 @@ compiled artifacts. In fact, Python's package installer, ``pip``,
126128
always prefers wheels because installation is always faster, so even
127129
pure-Python packages work better with wheels.
128130

129-
Binary distributions are best when they come with source distributions
131+
Built distributions are best when they come with source distributions
130132
to match. Even if you don't upload wheels of your code for every
131133
operating system, by uploading the sdist, you're enabling users of
132134
other platforms to still build it for themselves. Default to

‎source/specifications/binary-distribution-format.rst‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
.. _binary-distribution-format:
44

5-
==========================
6-
Binary distribution format
7-
==========================
5+
=========================
6+
Wheel distribution format
7+
=========================
88

9-
This page specifies the binary distribution format for Python packages,
10-
also called the wheel format.
9+
This page specifies the wheel format for Python packages.
1110

1211
A wheel is a ZIP-format archive with a specially formatted file name and
1312
the ``.whl`` extension. It contains a single distribution nearly as it

‎source/specifications/externally-managed-environments.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ distro
5050

5151
This document uses the short term "distro," because the term
5252
"distribution" has another meaning in Python packaging contexts: a
53-
source or binary distribution package of a single piece of Python
53+
source or built distribution package of a single piece of Python
5454
language software, that is, in the sense of
5555
``setuptools.dist.Distribution`` or "sdist". To avoid confusion,
5656
this document does not use the plain term "distribution" at all.

‎source/specifications/source-distribution-format.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Source distribution file name
3939

4040
The file name of a sdist was standardised in :pep:`625`. The file name must be in
4141
the form ``{name}-{version}.tar.gz``, where ``{name}`` is normalised according to
42-
the same rules as for binary distributions (see :ref:`binary-distribution-format`),
42+
the same rules as for wheels (see :ref:`binary-distribution-format`),
4343
and ``{version}`` is the canonicalized form of the project version (see
4444
:ref:`version-specifiers`).
4545

‎source/specifications/version-specifiers.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
1919
document are to be interpreted as described in :rfc:`2119`.
2020

2121
"Build tools" are automated tools intended to run on development systems,
22-
producing source and binary distribution archives. Build tools may also be
22+
producing source and built distribution archives. Build tools may also be
2323
invoked by integration tools in order to build software distributed as
24-
sdists rather than prebuilt binary archives.
24+
sdists rather than built distribution archives.
2525

2626
"Index servers" are active distribution registries which publish version and
2727
dependency metadata and place constraints on the permitted metadata.
2828

2929
"Publication tools" are automated tools intended to run on development
30-
systems and upload source and binary distribution archives to index servers.
30+
systems and upload source and built distribution archives to index servers.
3131

3232
"Installation tools" are integration tools specifically intended to run on
33-
deployment targets, consuming source and binary distribution archives from
33+
deployment targets, consuming source and built distribution archives from
3434
an index server or other designated location and deploying them to the target
3535
system.
3636

@@ -1112,7 +1112,7 @@ uploaded distributions. Direct references are intended as a tool for
11121112
software integrators rather than publishers.
11131113

11141114
Depending on the use case, some appropriate targets for a direct URL
1115-
reference may be an sdist or a wheel binary archive. The exact URLs and
1115+
reference may be an sdist or a wheel. The exact URLs and
11161116
targets supported will be tool dependent.
11171117

11181118
For example, a local source archive may be referenced directly::

0 commit comments

Comments
 (0)