Skip to content

Commit 5e12ee4

Browse files
committed
Remove check for wheel in --no-use-pep517
setuptools includes native bdist_wheel support since 70.1.0, we don't need the wheel library.
1 parent fa8cf0c commit 5e12ee4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

news/13330.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Don't require the ``wheel`` library to be installed to use ``--no-use-pep517``, any more.

src/pip/_internal/cli/cmdoptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@ def _handle_no_use_pep517(
824824
"""
825825
raise_option_error(parser, option=option, msg=msg)
826826

827-
# If user doesn't wish to use pep517, we check if setuptools and wheel are installed
827+
# If user doesn't wish to use pep517, we check if setuptools is installed
828828
# and raise error if it is not.
829-
packages = ("setuptools", "wheel")
829+
packages = ("setuptools",)
830830
if not all(importlib.util.find_spec(package) for package in packages):
831831
msg = (
832832
f"It is not possible to use --no-use-pep517 "

0 commit comments

Comments
 (0)