Elffuss BraidHub

kikocis/llama-stack public

Make build_conda_env a bit more robust
Changeset0accf0976683afb3683a422537179857fb12ffe85b59d1c1ef7892e3e36a4d03
AuthorAshwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-24 10:10 -07:00
CommitterAshwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-24 10:12 -07:00
Parents4c775f673340

Browse the files at this changeset

2 files changed

modified README.md +1 −1
@@ -55,7 +55,7 @@
5555 conda activate stack
5656
5757 cd llama-stack
58-pip install -e .
58+$CONDA_PREFIX/bin/pip install -e .
5959 ```
6060
6161 ## The Llama CLI
modified llama_stack/distribution/build_conda_env.sh +7 −7
@@ -77,8 +77,8 @@
7777
7878 if [ -n "$TEST_PYPI_VERSION" ]; then
7979 # these packages are damaged in test-pypi, so install them first
80- pip install fastapi libcst
81- pip install --extra-index-url https://test.pypi.org/simple/ llama-models==$TEST_PYPI_VERSION llama-stack==$TEST_PYPI_VERSION $pip_dependencies
80+ $CONDA_PREFIX/bin/pip install fastapi libcst
81+ $CONDA_PREFIX/bin/pip install --extra-index-url https://test.pypi.org/simple/ llama-models==$TEST_PYPI_VERSION llama-stack==$TEST_PYPI_VERSION $pip_dependencies
8282 else
8383 # Re-installing llama-stack in the new conda environment
8484 if [ -n "$LLAMA_STACK_DIR" ]; then
@@ -88,9 +88,9 @@
8888 fi
8989
9090 printf "Installing from LLAMA_STACK_DIR: $LLAMA_STACK_DIR\n"
91- pip install --no-cache-dir -e "$LLAMA_STACK_DIR"
91+ $CONDA_PREFIX/bin/pip install --no-cache-dir -e "$LLAMA_STACK_DIR"
9292 else
93- pip install --no-cache-dir llama-stack
93+ $CONDA_PREFIX/bin/pip install --no-cache-dir llama-stack
9494 fi
9595
9696 if [ -n "$LLAMA_MODELS_DIR" ]; then
@@ -100,14 +100,14 @@
100100 fi
101101
102102 printf "Installing from LLAMA_MODELS_DIR: $LLAMA_MODELS_DIR\n"
103- pip uninstall -y llama-models
104- pip install --no-cache-dir -e "$LLAMA_MODELS_DIR"
103+ $CONDA_PREFIX/bin/pip uninstall -y llama-models
104+ $CONDA_PREFIX/bin/pip install --no-cache-dir -e "$LLAMA_MODELS_DIR"
105105 fi
106106
107107 # Install pip dependencies
108108 if [ -n "$pip_dependencies" ]; then
109109 printf "Installing pip dependencies: $pip_dependencies\n"
110- pip install $pip_dependencies
110+ $CONDA_PREFIX/bin/pip install $pip_dependencies
111111 fi
112112 fi
113113 }