Skip to content

Commit

Permalink
Build: check for pre-compiled build.tools when using `ubuntu-lts-la…
Browse files Browse the repository at this point in the history
…test`

Related #11081
  • Loading branch information
humitos committed Feb 6, 2024
1 parent cee310d commit 5b092b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion readthedocs/doc_builder/director.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,12 @@ def install_build_tools(self):
# TODO: generate the correct path for the Python version
# see https://github.com/readthedocs/readthedocs.org/pull/8447#issuecomment-911562267
# tool_path = f'{self.config.build.os}/{tool}/2021-08-30/{full_version}.tar.gz'
tool_path = f"{self.data.config.build.os}-{tool}-{full_version}.tar.gz"

build_os = self.data.config.build.os
if "lts-latest" in self.data.config.build.os:
build_os = settings.RTD_DOCKER_BUILD_SETTINGS["os"]["ubuntu-lts-latest"]

tool_path = f"{build_os}-{tool}-{full_version}.tar.gz"
tool_version_cached = build_tools_storage.exists(tool_path)
if tool_version_cached:
remote_fd = build_tools_storage.open(tool_path, mode="rb")
Expand Down

0 comments on commit 5b092b7

Please sign in to comment.