Skip to content

Commit 64d8938

Browse files
authored
Merge pull request #12449 from webknjaz/maintenance/pep517-fallback-wheel
Stop injecting `wheel` as a build dep fallback
2 parents e88d39a + 3769ad7 commit 64d8938

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

docs/html/reference/build-system/pyproject-toml.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ section, it will be assumed to have the following backend settings:
135135

136136
```toml
137137
[build-system]
138-
requires = ["setuptools>=40.8.0", "wheel"]
138+
requires = ["setuptools>=40.8.0"]
139139
build-backend = "setuptools.build_meta:__legacy__"
140140
```
141141

142142
If a project has a `build-system` section but no `build-backend`, then:
143143

144-
- It is expected to include `setuptools` and `wheel` as build requirements. An
144+
- It is expected to include `setuptools` as a build requirement. An
145145
error is reported if the available version of `setuptools` is not recent
146146
enough.
147147

news/12449.bugfix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Removed ``wheel`` from the ``[build-system].requires`` list fallback
2+
that is used when ``pyproject.toml`` is absent.

news/12449.doc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Updated the ``pyproject.toml`` document to stop suggesting
2+
to depend on ``wheel`` as a build dependency directly.

src/pip/_internal/pyproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def load_pyproject_toml(
123123
# a version of setuptools that supports that backend.
124124

125125
build_system = {
126-
"requires": ["setuptools>=40.8.0", "wheel"],
126+
"requires": ["setuptools>=40.8.0"],
127127
"build-backend": "setuptools.build_meta:__legacy__",
128128
}
129129

0 commit comments

Comments
 (0)