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

+1 -1
View File
@@ -72,7 +72,7 @@ def served_text(name: str, root: Path, commit: str) -> str:
pair served."""
source, line = SOURCES[name]
text = (root / source).read_text(encoding="utf-8")
pinned = PIN[name].findall(text)
pinned = PIN[source].findall(text)
if len(pinned) != 1:
raise ValueError(f"{source}: {len(pinned)} installer pins, expected one")
actual = hashlib.sha256((root / "install.py").read_bytes()).hexdigest()