Skip to content

Commit 3d676a1

Browse files
committed
get: support fetching rc releases
The directory for these does not contain the `rc` suffix.
1 parent fb4dd9b commit 3d676a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

locallibs/get.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ def download(self):
6363
base_url = self.base_url.replace('macosx', 'macos')
6464
else:
6565
base_url = self.base_url
66+
python_dir_version = self.python_version
67+
if 'rc' in python_dir_version:
68+
python_dir_version = python_dir_version[:python_dir_version.find('r')]
6669
url = base_url % (
67-
self.python_version,
70+
python_dir_version,
6871
self.python_version,
6972
self.os_version,
7073
)

0 commit comments

Comments
 (0)