hydra.build.langexpansion module
Pure language/host list-expansion utilities shared by the sync/test/bench drivers.
- hydra.build.langexpansion.expand_lang_alias(tok: str) Sequence[str]
Expand a single language token: ‘all’ -> all languages, ‘lisp’ -> the dialects, else itself.
- hydra.build.langexpansion.expand_langs(toks: Sequence[str]) Sequence[str]
Expand a list of language tokens (aliases resolved), preserving order, deduped.
- hydra.build.langexpansion.is_known_lang(lang: str) bool
Whether a language token is a known target language.
- hydra.build.langexpansion.lang_union(hosts: Sequence[str], targets: Sequence[str]) Sequence[str]
The expanded, deduped union of two token lists (hosts + targets).
- hydra.build.langexpansion.validate_langs(toks: Sequence[str]) Sequence[str]
Validate a token list; return the unknown expanded tokens (empty = all valid).