feat: allow building distro with external providers

We can now build a distribution that includes external providers.

Closes: https://github.com/meta-llama/llama-stack/issues/1948
Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-04-16 13:04:43 +02:00
parent c4570bcb48
commit 89dbf91323
No known key found for this signature in database
11 changed files with 137 additions and 69 deletions

View file

@ -98,7 +98,7 @@ def collect_template_dependencies(template_dir: Path) -> tuple[str | None, list[
if template_func := getattr(module, "get_distribution_template", None):
template = template_func()
normal_deps, special_deps = get_provider_dependencies(template.providers)
normal_deps, special_deps = get_provider_dependencies(template)
# Combine all dependencies in order: normal deps, special deps, server deps
all_deps = sorted(set(normal_deps + SERVER_DEPENDENCIES)) + sorted(set(special_deps))