Skip to content

Commit c6364c1

Browse files
committed
Automatically do --no-use-pep517 builds, even without wheel
In #13330 I removed the command line argument check for this, but I hadn't realized that there were also heuristics that needed to be fixed.
1 parent c440c47 commit c6364c1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

news/13358.bugfix.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Automatically use the legacy (non-PEP517) mode even without the `wheel` package.

src/pip/_internal/pyproject.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,7 @@ def load_pyproject_toml(
105105
# https://discuss.python.org/t/pip-without-setuptools-could-the-experience-be-improved/11810/9
106106
# https://github.com/pypa/pip/issues/8559
107107
elif use_pep517 is None:
108-
use_pep517 = (
109-
has_pyproject
110-
or not importlib.util.find_spec("setuptools")
111-
or not importlib.util.find_spec("wheel")
112-
)
108+
use_pep517 = has_pyproject or not importlib.util.find_spec("setuptools")
113109

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

0 commit comments

Comments
 (0)