From 3f9c751312feb2a768517d48bbaba123fe73eacf Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sat, 4 Apr 2026 23:58:32 +0200 Subject: [PATCH] fix(hpc): pip cache --- scripts/hpc/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/hpc/install.sh b/scripts/hpc/install.sh index 4e428fa..737f259 100644 --- a/scripts/hpc/install.sh +++ b/scripts/hpc/install.sh @@ -26,6 +26,11 @@ HPC_CONFIG_DIR="$VSC_DATA/$PROJ_NAME/env/hpc" mkdir -p "$HPC_CONFIG_DIR" cp env/hpc/*.txt "$HPC_CONFIG_DIR/" +# Keep caches off $VSC_HOME (quota ~3 GB). +export PIP_CACHE_DIR="$VSC_SCRATCH/.cache/pip" +export UV_CACHE_DIR="$VSC_SCRATCH/.cache/uv" +mkdir -p "$PIP_CACHE_DIR" "$UV_CACHE_DIR" + module load vsc-venv echo ">>> Synchronizing and activating environment (vsc-venv)..."