Skip to content

Commit 4c07af5

Browse files
Merge branch 'main' into translation/source
2 parents e6ed555 + 6a46e99 commit 4c07af5

14 files changed

Lines changed: 37 additions & 115 deletions

‎source/conf.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@
105105
# -- Options for LaTeX output ----------------------------------------------------------
106106
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-latex-output
107107

108+
# pdflatex fails on emoji; xelatex only warns about missing glyphs.
109+
latex_engine = "xelatex"
108110
latex_elements = {}
109111
latex_documents = [
110112
(

‎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/discussions/index.rst‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ specific topic. If you're just trying to get stuff done, see
1010

1111
versioning
1212
deploying-python-applications
13-
pip-vs-easy-install
1413
install-requires-vs-requirements
1514
distribution-package-vs-import-package
1615
package-formats

‎source/discussions/pip-vs-easy-install.rst‎

Lines changed: 0 additions & 71 deletions
This file was deleted.

‎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/guides/tool-recommendations.rst‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ For scientific software specifically, consider :ref:`Conda` or :ref:`Spack`.
4444

4545
.. todo:: Write a "pip vs. Conda" comparison, here or in a new discussion.
4646

47-
Do **not** use ``easy_install`` (part of :ref:`setuptools`), which is deprecated
48-
in favor of pip (see :ref:`pip vs easy_install` for details). Likewise, do
49-
**not** use ``python setup.py install`` or ``python setup.py develop``, which
50-
are also deprecated (see :ref:`setup-py-deprecated` for background and
47+
Do **not** use ``python setup.py install`` or ``python setup.py develop``, which
48+
are deprecated (see :ref:`setup-py-deprecated` for background and
5149
:ref:`modernize-setup-py-project` for migration advice).
5250

5351

@@ -100,10 +98,9 @@ in alphabetical order:
10098
:file:`setup.py` only if programmatic configuration is needed. See
10199
:ref:`setup-py-deprecated`.
102100

103-
Other examples of deprecated features you should **not** use include the
101+
Another example of a deprecated feature you should **not** use is the
104102
``setup_requires`` argument to ``setup()`` (use the :ref:`[build-system] table
105-
<pyproject-guide-build-system-table>` in :file:`pyproject.toml` instead), and
106-
the ``easy_install`` command (cf. :ref:`pip vs easy_install`).
103+
<pyproject-guide-build-system-table>` in :file:`pyproject.toml` instead).
107104

108105
Do **not** use :ref:`distutils`, which is deprecated, and has been removed from
109106
the standard library in Python 3.12, although it still remains available from

‎source/index.rst‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ The :doc:`discussions/index` section provides in-depth explanations and discussi
8383
about topics, such as:
8484

8585
* :doc:`discussions/deploying-python-applications`
86-
* :doc:`discussions/pip-vs-easy-install`
8786

8887
Reference
8988
=========

‎source/key_projects.rst‎

Lines changed: 8 additions & 9 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.
@@ -268,7 +268,6 @@ process, to check that their package descriptions will properly
268268
display on PyPI.
269269

270270
.. _setuptools:
271-
.. _easy_install:
272271

273272
Setuptools
274273
==========
@@ -278,10 +277,10 @@ Setuptools
278277
`GitHub <https://github.com/pypa/setuptools>`__ |
279278
`PyPI <https://pypi.org/project/setuptools>`__
280279

281-
Setuptools (which includes ``easy_install``) is a collection of
282-
enhancements to the Python distutils that allow you to more easily
283-
build and distribute Python :term:`distributions <Distribution
284-
Package>`, especially ones that have dependencies on other packages.
280+
Setuptools is a collection of enhancements to the Python distutils
281+
that allow you to more easily build and distribute Python
282+
:term:`distributions <Distribution Package>`, especially ones that
283+
have dependencies on other packages.
285284

286285
.. _trove-classifiers:
287286

@@ -373,9 +372,9 @@ creating :term:`wheel distributions <Wheel>`. Additionally, it offers its own
373372
command line utility for creating and installing wheels.
374373

375374
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
375+
that package developers use to check and fix wheels containing native code.
376+
It provides functionality to discover dependencies, check metadata for
377+
compliance, and repair the
379378
wheel and metadata to properly link and include external shared
380379
libraries in a package.
381380

‎source/overview.rst‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ 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+
.. _python-built-distributions:
117+
118+
Python built distributions
119+
^^^^^^^^^^^^^^^^^^^^^^^^^^
117120

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

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

0 commit comments

Comments
 (0)