Skip to content

Commit 7761231

Browse files
authored
feat: allow absolute urls in tool_versions (#973)
feat: allow absolute urls in `tools_versions`
1 parent d196451 commit 7761231

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/versions.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ def get_release_info(platform, python_version, base_url = DEFAULT_RELEASE_BASE_U
275275
python_version = python_version,
276276
build = "shared-install_only" if (WINDOWS_NAME in platform) else "install_only",
277277
)
278-
url = "/".join([base_url, release_filename])
278+
if "://" in release_filename: # is absolute url?
279+
url = release_filename
280+
else:
281+
url = "/".join([base_url, release_filename])
279282

280283
patches = tool_versions[python_version].get("patches", [])
281284
if type(patches) == type({}):

0 commit comments

Comments
 (0)