refactor: installer pins keyed by bootstrap file

installer_build.pins read the site's served names from model.guides,
which loads the guides YAML at import. Since the launcher builders read
the pin through it, the installer doc build pulled pyyaml in, and the
Python 3.8 installer job has none.
This commit is contained in:
Abdessamad Derraz committed 2026-11-19 02:57:02 +01:00
1 parent 9ac3145c5e
commit 753d39ffe3
4 files changed
+6 -9

No files matched your search

+3 -4
View File
@@ -7,7 +7,6 @@ import re
from pathlib import Path
from core.paths import REPO_ROOT
from model.guides import PS1_NAME, SH_NAME
INSTALLER = "install.py"
@@ -16,10 +15,10 @@ PINS: dict[str, re.Pattern[str]] = {
"install.sh": re.compile(r'^(DEFAULT_INSTALL_SHA256=")[0-9a-f]{64}(")', re.M),
"install.ps1": re.compile(r'^(\s*\$defaultInstallSha256 = ")[0-9a-f]{64}(")', re.M),
}
# The value of that pin line, by the name the site serves each bootstrap under.
# The value of that pin line, by bootstrap.
PIN: dict[str, re.Pattern[str]] = {
SH_NAME: re.compile(r'^DEFAULT_INSTALL_SHA256="([0-9a-f]{64})"', re.M),
PS1_NAME: re.compile(r'^\s*\$defaultInstallSha256 = "([0-9a-f]{64})"', re.M),
"install.sh": re.compile(r'^DEFAULT_INSTALL_SHA256="([0-9a-f]{64})"', re.M),
"install.ps1": re.compile(r'^\s*\$defaultInstallSha256 = "([0-9a-f]{64})"', re.M),
}
COMMAND = "python scripts/pin_installer.py"