Skip to content

Commit

Permalink
Merge pull request #12449 from webknjaz/maintenance/pep517-fallback-w…
Browse files Browse the repository at this point in the history
…heel

Stop injecting `wheel` as a build dep fallback
  • Loading branch information
pfmoore authored Jan 9, 2024
2 parents e88d39a + 3769ad7 commit 64d8938
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
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

0 comments on commit 64d8938

Please sign in to comment.