From f5a0a91202a11dacf493ddd44096cd855767d6dd Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 26 Nov 2026 13:44:19 +0100 Subject: [PATCH] Keep temporary files in .cache/tmp --- noxfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/noxfile.py b/noxfile.py index 0d228df..178d45c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -144,6 +144,10 @@ nox.options.sessions = ( # because only then are the headers needed to build `rpy2` from source included os.environ.setdefault('UV_PYTHON_PREFERENCE', 'only-managed') +# Where to keep temporary files (e.g., the constraints file in `install_pinned()`) +tempfile.tempdir = '.cache/tmp' +os.makedirs(tempfile.tempdir, exist_ok=True) + @nox.session(name='format', python=MAIN_PYTHON) def format_(session):