Skip to content

Commit 561bce4

Browse files
committed
Clean up section on eggs from discussion page "Package Formats"
1 parent 68bd9d8 commit 561bce4

2 files changed

Lines changed: 4 additions & 50 deletions

File tree

‎source/discussions/package-formats.rst‎

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -131,47 +131,6 @@ All technical details on the wheel format can be found in the :ref:`wheel
131131
specification <binary-distribution-format>`.
132132

133133

134-
.. _egg-format:
135-
.. _`Wheel vs Egg`:
136-
137-
What about eggs?
138-
================
139-
140-
"Egg" is an old package format that has been replaced with the wheel format. It
141-
should not be used anymore. Since August 2023, PyPI `rejects egg uploads
142-
<pypi-eggs-deprecation_>`_.
143-
144-
Here's a breakdown of the important differences between wheel and egg.
145-
146-
* The egg format was introduced by :ref:`setuptools` in 2004, whereas the wheel
147-
format was introduced by :pep:`427` in 2012.
148-
149-
* Wheel has an :doc:`official standard specification
150-
</specifications/binary-distribution-format>`. Egg did not.
151-
152-
* Wheel is a :term:`distribution <Distribution Package>` format, i.e a packaging
153-
format. [#wheel-importable]_ Egg was both a distribution format and a runtime
154-
installation format (if left zipped), and was designed to be importable.
155-
156-
* Wheel archives do not include ``.pyc`` files. Therefore, when the distribution
157-
only contains Python files (i.e. no compiled extensions), and is compatible
158-
with Python 2 and 3, it's possible for a wheel to be "universal", similar to
159-
an :term:`sdist <Source Distribution (or "sdist")>`.
160-
161-
* Wheel uses standard :ref:`.dist-info directories
162-
<recording-installed-packages>`. Egg used ``.egg-info``.
163-
164-
* Wheel has a :ref:`richer file naming convention <wheel-file-name-spec>`. A
165-
single wheel archive can indicate its compatibility with a number of Python
166-
language versions and implementations, ABIs, and system architectures.
167-
168-
* Wheel is versioned. Every wheel file contains the version of the wheel
169-
specification and the implementation that packaged it.
170-
171-
* Wheel is internally organized by `sysconfig path type
172-
<https://docs.python.org/2/library/sysconfig.html#installation-paths>`_,
173-
therefore making it easier to convert to other formats.
174-
175134
--------------------------------------------------------------------------------
176135

177136
.. [#core-metadata-format] This format is email-based. Although this would
@@ -181,13 +140,6 @@ Here's a breakdown of the important differences between wheel and egg.
181140
understood by the build backend, typically ``[project]`` in ``pyproject.toml``,
182141
and translated by the build backend into ``PKG-INFO``.
183142
184-
.. [#wheel-importable] Circumstantially, in some cases, wheels can be used
185-
as an importable runtime format, although :ref:`this is not officially supported
186-
at this time <binary-distribution-format-import-wheel>`.
187-
188-
189-
190143
.. _pip-pypi: https://pypi.org/project/pip/23.3.1/#files
191144
.. _pypi: https://pypi.org
192-
.. _pypi-eggs-deprecation: https://blog.pypi.org/posts/2023-06-26-deprecate-egg-uploads/
193145
.. _pypy: https://pypy.org

‎source/glossary.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ Glossary
106106
Egg
107107

108108
A :term:`Built Distribution` format introduced by :ref:`setuptools`,
109-
which has been replaced by :term:`Wheel`. For details, see
110-
:ref:`egg-format`.
109+
which has been replaced by :term:`Wheel`. See :pep:`715` for the removal
110+
of egg uploads from PyPI, and
111+
:doc:`The Internal Structure of Python Eggs <setuptools:deprecated/python_eggs>`
112+
for details of the format.
111113

112114
Extension Module
113115

0 commit comments

Comments
 (0)