avoid jq since non-standard on macOS

This commit is contained in:
Dalton Flanagan 2024-10-04 10:11:43 -04:00
parent 9bf2e354ae
commit 441052b0fd
2 changed files with 2 additions and 3 deletions

View file

@ -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}"):

View file

@ -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