forked from phoenix-oss/llama-stack-mirror
[CLI] remove dependency on CONDA_PREFIX in CLI (#144)
* remove dependency on CONDA_PREFIX in CLI * lint * typo * more robust
This commit is contained in:
parent
fe460ba103
commit
6a8c2ae1df
4 changed files with 26 additions and 20 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