From 05b3b021664149626c354f8f040364a66f7f0e68 Mon Sep 17 00:00:00 2001 From: aitbc Date: Sun, 19 Apr 2026 21:30:02 +0200 Subject: [PATCH] ci: add --no-cache-dir flag to all pip install commands in venv setup script Added --no-cache-dir to pip install commands for pip/setuptools/wheel, requirements file, and extra packages to reduce disk usage and ensure clean installations in CI environments. --- scripts/ci/setup-python-venv.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ci/setup-python-venv.sh b/scripts/ci/setup-python-venv.sh index 837fc517..ec0ddda5 100644 --- a/scripts/ci/setup-python-venv.sh +++ b/scripts/ci/setup-python-venv.sh @@ -100,15 +100,15 @@ build_cached_environment() { "$PYTHON_BIN" -m venv "$temp_dir" source "$temp_dir/bin/activate" - python -m pip install -q --upgrade pip setuptools wheel + python -m pip install -q --upgrade pip setuptools wheel --no-cache-dir if [[ -n "$REQUIREMENTS_FILE" && -f "$REQUIREMENTS_FILE" ]]; then - python -m pip install -q -r "$REQUIREMENTS_FILE" + python -m pip install -q -r "$REQUIREMENTS_FILE" --no-cache-dir fi if [[ -n "$EXTRA_PACKAGES" ]]; then read -r -a extra_array <<< "$EXTRA_PACKAGES" - python -m pip install -q "${extra_array[@]}" + python -m pip install -q "${extra_array[@]}" --no-cache-dir fi deactivate || true