Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions source/specifications/binary-distribution-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,21 @@ in both fields) consist of:
Tag: py3-none-any
Build: 1

#. ``Wheel-Version`` is the version number of the Wheel specification.
#. ``Generator`` is the name and optionally the version of the software
that produced the archive.
#. ``Root-Is-Purelib`` is true if the top level directory of the archive
should be installed into purelib; otherwise the root should be installed
into platlib.
#. ``Tag`` is the wheel's expanded compatibility tags; in the example the
filename would contain ``py2.py3-none-any``.
#. ``Build`` is the build number and is omitted if there is no build number.
#. A wheel installer should warn if Wheel-Version is greater than the
version it supports, and must fail if Wheel-Version has a greater
major version than the version it supports.
#. Wheel, being an installation format that is intended to work across
multiple versions of Python, does not generally include .pyc files.
#. Wheel does not contain setup.py or setup.cfg.
#. ``Wheel-Version`` is the version number of the Wheel specification.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github rendering shows that this is interpreted as part of the code block instead of creating a nested list. to be fixed.

#. ``Generator`` is the name and optionally the version of the software
that produced the archive.
#. ``Root-Is-Purelib`` is true if the top level directory of the archive
should be installed into purelib; otherwise the root should be installed
into platlib.
#. ``Tag`` is the wheel's expanded compatibility tags; in the example the
filename would contain ``py2.py3-none-any``.
#. ``Build`` is the build number and is omitted if there is no build number.
#. A wheel installer should warn if ``Wheel-Version`` is greater than the
version it supports, and must fail if ``Wheel-Version`` has a greater
major version than the version it supports.
#. Wheel files, being an installation format that is intended to work across
multiple versions of Python, do not generally include ``.pyc`` files.
#. Wheels files do not contain ``pyproject.toml``, ``setup.py`` or ``setup.cfg``.

This version of the wheel specification is based on the distutils install

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should say sysconfig install schemes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite I think. Updating this would help, but replacing distutils with sysconfig isn’t accurate. The wheel spec has the headers scheme key, whereas sysconfig exposes include and platinclude. Installers translate between them. For example, pip derives headers from include, appending the distribution name (https://github.com/pypa/pip/blob/26.3/src/pip/_internal/locations/_sysconfig.py#L202).

How about not referring to either implementation, something like:

"The wheel installation scheme uses the purelib, platlib, headers, scripts, and data keys. These correspond to sysconfig installation paths, except for headers, which contains distribution-specific header files. Installers derive its destination from sysconfig's include path by appending the distribution name, with adjustments for installation into virtual environments."

Still not super exhaustively accurate, but a significant improvement.

schemes and does not define how to install files to other locations.
Expand Down