Keep temporary files in .cache/tmp

This commit is contained in:
Alexander Hess 2026-11-26 13:44:19 +01:00
commit c42d69a0f4
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -144,6 +144,11 @@ nox.options.sessions = (
# because only then are the headers needed to build `rpy2` from source included
os.environ.setdefault('UV_PYTHON_PREFERENCE', 'only-managed')
# Keep temporary files (e.g., the constraints file in `install_pinned()`)
# inside the project; the folder must exist before any session uses it
tempfile.tempdir = '.cache/tmp'
os.makedirs(tempfile.tempdir, exist_ok=True)
@nox.session(name='format', python=MAIN_PYTHON)
def format_(session):