Skip to content
Closed
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
1 change: 1 addition & 0 deletions news/13358.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Automatically use the legacy (non-PEP517) mode even without the ``wheel`` package.
6 changes: 1 addition & 5 deletions src/pip/_internal/pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ def load_pyproject_toml(
# https://discuss.python.org/t/pip-without-setuptools-could-the-experience-be-improved/11810/9
# https://github.com/pypa/pip/issues/8559
elif use_pep517 is None:
use_pep517 = (
has_pyproject
or not importlib.util.find_spec("setuptools")
or not importlib.util.find_spec("wheel")
)
use_pep517 = has_pyproject or not importlib.util.find_spec("setuptools")

# At this point, we know whether we're going to use PEP 517.
assert use_pep517 is not None
Expand Down