Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/html/reference/build-system/pyproject-toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ section, it will be assumed to have the following backend settings:

```toml
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
requires = ["setuptools>=40.8.0"]
build-backend = "setuptools.build_meta:__legacy__"
```

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

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

Expand Down
2 changes: 2 additions & 0 deletions news/12449.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Removed ``wheel`` from the ``[build-system].requires`` list fallback
that is used when ``pyproject.toml`` is absent.
2 changes: 2 additions & 0 deletions news/12449.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Updated the ``pyproject.toml`` document to stop suggesting
to depend on ``wheel`` as a build dependency directly.
2 changes: 1 addition & 1 deletion src/pip/_internal/pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def load_pyproject_toml(
# a version of setuptools that supports that backend.

build_system = {
"requires": ["setuptools>=40.8.0", "wheel"],
"requires": ["setuptools>=40.8.0"],
"build-backend": "setuptools.build_meta:__legacy__",
}

Expand Down