forked from phoenix-oss/llama-stack-mirror
avoid jq since non-standard on macOS
This commit is contained in:
parent
9bf2e354ae
commit
441052b0fd
2 changed files with 2 additions and 3 deletions
|
@ -72,9 +72,9 @@ class StackConfigure(Subcommand):
|
||||||
Path(os.path.expanduser("~/.conda/envs")) / f"llamastack-{args.config}"
|
Path(os.path.expanduser("~/.conda/envs")) / f"llamastack-{args.config}"
|
||||||
)
|
)
|
||||||
output = subprocess.check_output(
|
output = subprocess.check_output(
|
||||||
["bash", "-c", "conda info --json -a | jq '.envs'"]
|
["bash", "-c", "conda info --json -a"]
|
||||||
)
|
)
|
||||||
conda_envs = json.loads(output.decode("utf-8"))
|
conda_envs = json.loads(output.decode("utf-8"))["envs"]
|
||||||
|
|
||||||
for x in conda_envs:
|
for x in conda_envs:
|
||||||
if x.endswith(f"/llamastack-{args.config}"):
|
if x.endswith(f"/llamastack-{args.config}"):
|
||||||
|
|
|
@ -6,7 +6,6 @@ llama-models>=0.0.39
|
||||||
prompt-toolkit
|
prompt-toolkit
|
||||||
python-dotenv
|
python-dotenv
|
||||||
pydantic>=2
|
pydantic>=2
|
||||||
jq
|
|
||||||
requests
|
requests
|
||||||
rich
|
rich
|
||||||
termcolor
|
termcolor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue