refactor: remove Conda support from Llama Stack

This commit is contained in:
r3v5 2025-07-17 13:55:56 +01:00
parent 140ee7d337
commit 4a483977f9
No known key found for this signature in database
GPG key ID: 7758B9F272DE67D9
44 changed files with 159 additions and 311 deletions

View file

@ -7,7 +7,6 @@
import importlib.resources
import logging
import sys
from pathlib import Path
from pydantic import BaseModel
from termcolor import cprint
@ -106,7 +105,6 @@ def print_pip_install_help(config: BuildConfig):
def build_image(
build_config: BuildConfig,
build_file_path: Path,
image_name: str,
template_or_config: str,
run_config: str | None = None,
@ -138,18 +136,7 @@ def build_image(
# build arguments
if run_config is not None:
args.extend(["--run-config", run_config])
elif build_config.image_type == LlamaStackImageType.CONDA.value:
script = str(importlib.resources.files("llama_stack") / "core/build_conda_env.sh")
args = [
script,
"--env-name",
str(image_name),
"--build-file-path",
str(build_file_path),
"--normal-deps",
" ".join(normal_deps),
]
elif build_config.image_type == LlamaStackImageType.VENV.value:
else:
script = str(importlib.resources.files("llama_stack") / "core/build_venv.sh")
args = [
script,