From ca687d3e8612691f8b8b63b915d3baa83636c236 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Wed, 19 Feb 2025 22:32:59 -0800 Subject: [PATCH] style: env var in build_venv --- llama_stack/distribution/build_venv.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llama_stack/distribution/build_venv.sh b/llama_stack/distribution/build_venv.sh index 00e70afe7..b47cfcb83 100755 --- a/llama_stack/distribution/build_venv.sh +++ b/llama_stack/distribution/build_venv.sh @@ -15,6 +15,7 @@ TEST_PYPI_VERSION=${TEST_PYPI_VERSION:-} # This timeout (in seconds) is necessary when installing PyTorch via uv since it's likely to time out # Reference: https://github.com/astral-sh/uv/pull/1694 UV_HTTP_TIMEOUT=${UV_HTTP_TIMEOUT:-500} +UV_SYSTEM_PYTHON=${UV_SYSTEM_PYTHON:-} if [ -n "$LLAMA_STACK_DIR" ]; then echo "Using llama-stack-dir=$LLAMA_STACK_DIR" @@ -74,7 +75,7 @@ run() { local pip_dependencies="$2" local special_pip_deps="$3" - if [ -n "${UV_SYSTEM_PYTHON:-}" ]; then + if [ -n "$UV_SYSTEM_PYTHON" ]; then echo "Installing dependencies in system Python environment" else echo "Using virtual environment $env_name"