mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 04:17:32 +00:00
remove dependency on CONDA_PREFIX in CLI
This commit is contained in:
parent
4ae8c63a2b
commit
3ffe51052a
3 changed files with 10 additions and 13 deletions
|
@ -100,10 +100,7 @@ class StackBuild(Subcommand):
|
|||
llama_stack_path / "tmp/configs/"
|
||||
)
|
||||
else:
|
||||
build_dir = (
|
||||
Path(os.getenv("CONDA_PREFIX")).parent
|
||||
/ f"llamastack-{build_config.name}"
|
||||
)
|
||||
build_dir = DISTRIBS_BASE_DIR / f"llamastack-{build_config.name}"
|
||||
|
||||
os.makedirs(build_dir, exist_ok=True)
|
||||
build_file_path = build_dir / f"{build_config.name}-build.yaml"
|
||||
|
@ -116,11 +113,6 @@ class StackBuild(Subcommand):
|
|||
if return_code != 0:
|
||||
return
|
||||
|
||||
cprint(
|
||||
f"Build spec configuration saved at {str(build_file_path)}",
|
||||
color="blue",
|
||||
)
|
||||
|
||||
configure_name = (
|
||||
build_config.name
|
||||
if build_config.image_type == "conda"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue