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.
This commit is contained in:
aitbc
2026-04-19 21:30:02 +02:00
parent 097cd9cccf
commit 05b3b02166

View File

@@ -100,15 +100,15 @@ build_cached_environment() {
"$PYTHON_BIN" -m venv "$temp_dir" "$PYTHON_BIN" -m venv "$temp_dir"
source "$temp_dir/bin/activate" 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 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 fi
if [[ -n "$EXTRA_PACKAGES" ]]; then if [[ -n "$EXTRA_PACKAGES" ]]; then
read -r -a extra_array <<< "$EXTRA_PACKAGES" 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 fi
deactivate || true deactivate || true