Skip to content

Commit

Permalink
Separate package version by python minor release
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell175 committed Dec 28, 2023
1 parent df6a8f8 commit 939b3f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 939b3f6

Please sign in to comment.