From 85b8cd8eaa07b851dbdbf8ff4f4ecefa0b2939d8 Mon Sep 17 00:00:00 2001 From: James Webber Date: Sun, 20 Oct 2024 22:47:01 -0400 Subject: [PATCH 1/2] Update wheel.py added update nudge to UnsupportedWheel exception --- src/pip/_internal/utils/wheel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pip/_internal/utils/wheel.py b/src/pip/_internal/utils/wheel.py index f85aee8a3f9..1707979f98c 100644 --- a/src/pip/_internal/utils/wheel.py +++ b/src/pip/_internal/utils/wheel.py @@ -125,7 +125,9 @@ def check_compatibility(version: Tuple[int, ...], name: str) -> None: if version[0] > VERSION_COMPATIBLE[0]: raise UnsupportedWheel( "{}'s Wheel-Version ({}) is not compatible with this version " - "of pip".format(name, ".".join(map(str, version))) + "of pip, update pip to install {} successfully".format( + name, ".".join(map(str, version)), name + ) ) elif version > VERSION_COMPATIBLE: logger.warning( From 13a1a626dba663244048c1190037fb656811acdb Mon Sep 17 00:00:00 2001 From: James Webber Date: Sun, 20 Oct 2024 23:08:31 -0400 Subject: [PATCH 2/2] Create 13034.trivial.rst --- news/13034.trivial.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/13034.trivial.rst diff --git a/news/13034.trivial.rst b/news/13034.trivial.rst new file mode 100644 index 00000000000..6a499ae530f --- /dev/null +++ b/news/13034.trivial.rst @@ -0,0 +1 @@ +Tweaked UnsupportedWheel exception to suggest updating.