Skip to content

Commit

Permalink
Simplify pyproject.toml
Browse files Browse the repository at this point in the history
https://code.djangoproject.com/ticket/33778

The wheel dependency is redundant and discouraged here. Setuptools adds
this dependency via the backend automatically since day one. It was
historically included in the documentation but it was a mistake. See:
pypa/setuptools@f7d30a9

The legacy backend was never supposed to be used in pyproject.toml. It
is only an "internal" fallback that is used by tools like pip when
pyproject.toml is not present at all. The regular backend must always be
used in pyproject.toml. See:
pypa/setuptools#1689
  • Loading branch information
francoisfreitag committed Aug 16, 2022
1 parent 89e0ad4 commit 92a0ed1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
]
build-backend = "setuptools.build_meta:__legacy__"
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"

0 comments on commit 92a0ed1

Please sign in to comment.