Skip to content

Commit bd3c51d

Browse files
committed
Stop explicitly listing wheel as a build dependency
setuptools' get_requires_for_build_wheel() hook already injects this dependency when building wheels is requested. See also 64d8938.
1 parent fb71f4c commit bd3c51d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

news/12728.feature.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
``wheel`` is no longer explicitly listed as a build depepndency of ``pip``.
2+
``setuptools`` already injects this dependency in the ``get_requires_for_build_wheel()`` hook.
3+
This makes no difference for users of ``pip``.
4+
This makes no difference when building wheels of ``pip``.
5+
This avoids an unnecessary dependency on ``wheel`` wehn bulding the source distribution of ``pip``.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Changelog = "https://pip.pypa.io/en/stable/news/"
4141

4242
[build-system]
4343
# The lower bound is for <https://github.com/pypa/setuptools/issues/3865>.
44-
requires = ["setuptools>=67.6.1", "wheel"]
44+
requires = ["setuptools>=67.6.1"]
4545
build-backend = "setuptools.build_meta"
4646

4747
[tool.setuptools]

0 commit comments

Comments
 (0)