Skip to content

Commit 5b092b7

Browse files
committed
Build: check for pre-compiled build.tools when using ubuntu-lts-latest
Related #11081
1 parent cee310d commit 5b092b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

readthedocs/doc_builder/director.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,12 @@ def install_build_tools(self):
491491
# TODO: generate the correct path for the Python version
492492
# see https://github.com/readthedocs/readthedocs.org/pull/8447#issuecomment-911562267
493493
# tool_path = f'{self.config.build.os}/{tool}/2021-08-30/{full_version}.tar.gz'
494-
tool_path = f"{self.data.config.build.os}-{tool}-{full_version}.tar.gz"
494+
495+
build_os = self.data.config.build.os
496+
if "lts-latest" in self.data.config.build.os:
497+
build_os = settings.RTD_DOCKER_BUILD_SETTINGS["os"]["ubuntu-lts-latest"]
498+
499+
tool_path = f"{build_os}-{tool}-{full_version}.tar.gz"
495500
tool_version_cached = build_tools_storage.exists(tool_path)
496501
if tool_version_cached:
497502
remote_fd = build_tools_storage.open(tool_path, mode="rb")

0 commit comments

Comments
 (0)