From ab4bd1c46a826f23f2edb54d9732a74ac85e81a0 Mon Sep 17 00:00:00 2001 From: Olivier <16240457+TiTidom-RC@users.noreply.github.com> Date: Sat, 13 Jun 2026 09:50:09 +0200 Subject: [PATCH] Use --no-cache-dir for pip installs Add the --no-cache-dir flag to pip install commands in resources/install_apt.sh (both the pip/wheel upgrade and the requirements installation) to avoid pip caching packages during automated installs. This reduces disk usage and prevents potential stale-cache issues in constrained or ephemeral environments. --- resources/install_apt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/install_apt.sh b/resources/install_apt.sh index c2259bb..7532d3a 100644 --- a/resources/install_apt.sh +++ b/resources/install_apt.sh @@ -223,10 +223,10 @@ echo 70 > ${PROGRESS_FILE} log "*****************************" log "* Install Python3 libraries *" log "*****************************" -${VENV_DIR}/bin/python3 -m pip install --upgrade pip wheel | log +${VENV_DIR}/bin/python3 -m pip install --no-cache-dir --upgrade pip wheel | log log "** Install Pip / Wheel :: Done **" echo 75 > ${PROGRESS_FILE} -${VENV_DIR}/bin/python3 -m pip install -r ${REQUIREMENTS_FILE} | log +${VENV_DIR}/bin/python3 -m pip install --no-cache-dir -r ${REQUIREMENTS_FILE} | log log "** Install Python3 libraries :: Done **" echo 95 > ${PROGRESS_FILE} log "****************************"