We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c440c47 commit c6364c1Copy full SHA for c6364c1
news/13358.bugfix.rst
@@ -0,0 +1 @@
1
+Automatically use the legacy (non-PEP517) mode even without the `wheel` package.
src/pip/_internal/pyproject.py
@@ -105,11 +105,7 @@ def load_pyproject_toml(
105
# https://discuss.python.org/t/pip-without-setuptools-could-the-experience-be-improved/11810/9
106
# https://github.com/pypa/pip/issues/8559
107
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
- )
+ use_pep517 = has_pyproject or not importlib.util.find_spec("setuptools")
113
114
# At this point, we know whether we're going to use PEP 517.
115
assert use_pep517 is not None
0 commit comments