From 939b3f6a5e5b858ef325d8b89d0008081aa6d354 Mon Sep 17 00:00:00 2001 From: Maxwell Dreytser Date: Thu, 28 Dec 2023 01:11:25 -0500 Subject: [PATCH] Separate package version by python minor release --- Lib/pip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/pip.py b/Lib/pip.py index 9422ca0370a0fb2..05bf4a8210e5f4c 100644 --- a/Lib/pip.py +++ b/Lib/pip.py @@ -115,17 +115,17 @@ def getPackageUrl(section, name): if str is bytes: section += "/np27-windows" else: - section += "/np3-windows" + section += "/np{0}{1}-windows".format(sys.version_info.major, sys.version_info.minor) elif platform.system() == "Linux": if str is bytes: section += "/np27-linux" else: - section += "/np3-linux" + section += "/np{0}{1}-linux".format(sys.version_info.major, sys.version_info.minor) elif platform.system() == "Darwin": if str is bytes: section += "/np27-macos" else: - section += "/np3-macos" + section += "/np{0}{1}-macos".format(sys.version_info.major, sys.version_info.minor) return "{PACKAGE_BASE_URL}/{section}/{name}".format( PACKAGE_BASE_URL=PACKAGE_BASE_URL, section=section, name=name