From f983b0a174a89b5a8fc16699bdc58de566367755 Mon Sep 17 00:00:00 2001 From: Dawn Date: Tue, 18 Aug 2026 10:55:59 +0200 Subject: [PATCH] careless: put uv cache under PREFIX, home quota too small for TF wheels Co-Authored-By: Claude Fable 5 --- careless/build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/careless/build b/careless/build index 6af67fd..189d84a 100755 --- a/careless/build +++ b/careless/build @@ -10,6 +10,8 @@ pbuild::configure() { # venv's interpreter symlinks don't depend on the builder's home cache. # modbuild's shell strips ~/.local/bin from PATH; override with UV=/path/to/uv if needed UV="${UV:-$HOME/.local/bin/uv}" + # ~/.cache/uv hits the home disk quota; cache under PREFIX (removed after install) + export UV_CACHE_DIR="$PREFIX/.uv-cache" export UV_PYTHON_INSTALL_DIR="$PREFIX/python" "$UV" venv --python 3.12 "$PREFIX/venv" } @@ -20,6 +22,8 @@ pbuild::compile() { pbuild::install() { UV="${UV:-$HOME/.local/bin/uv}" + export UV_CACHE_DIR="$PREFIX/.uv-cache" # [cuda] extra ships the NVIDIA libs via pip wheels; works on CPU-only nodes too "$UV" pip install --python "$PREFIX/venv/bin/python" "careless[cuda]==${V_PKG}" + rm -rf "$UV_CACHE_DIR" }