Skip to content

Commit 9b22df6

Browse files
committed
Separate package version by python minor release
1 parent 295eed5 commit 9b22df6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/pip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ def getPackageUrl(section, name):
115115
if str is bytes:
116116
section += "/np27-windows"
117117
else:
118-
section += "/np3-windows"
118+
section += "/np{0}{1}-windows".format(sys.version_info.major, sys.version_info.minor)
119119
elif platform.system() == "Linux":
120120
if str is bytes:
121121
section += "/np27-linux"
122122
else:
123-
section += "/np3-linux"
123+
section += "/np{0}{1}-linux".format(sys.version_info.major, sys.version_info.minor)
124124
elif platform.system() == "Darwin":
125125
if str is bytes:
126126
section += "/np27-macos"
127127
else:
128-
section += "/np3-macos"
128+
section += "/np{0}{1}-macos".format(sys.version_info.major, sys.version_info.minor)
129129

130130
return "{PACKAGE_BASE_URL}/{section}/{name}".format(
131131
PACKAGE_BASE_URL=PACKAGE_BASE_URL, section=section, name=name

0 commit comments

Comments
 (0)