You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trac #33213: Replace SAGE_TMP by the system location in the sage library
Re: https://groups.google.com/g/sage-devel/c/zhjl_j6j_Qc
These days, using a `SAGE_TMP` that by default lives under `$HOME` is
overly complex and often inefficient. In this ticket we implement the
first phase of its removal, to be replaced by python's `tempfile`
module. Specifically,
1. We replace all direct uses of `SAGE_TMP` within the sage library
and doctests.
2. We update `tmp_dir()` and `tmp_filename()` to use the `tempfile`
defaults.
3. We remove `SAGE_TMP`.
Afterward, the custom functions `tmp_dir()` and `tmp_filename()` can be
deprecated in favor of `tempfile.TemporaryDirectory()` and
`tempfile.NamedTemporaryFile()`.
Moreover when #8784 is done, we'll be able to remove sage-cleaner
entirely.
URL: https://trac.sagemath.org/33213
Reported by: mjo
Ticket author(s): Michael Orlitzky
Reviewer(s): Matthias Koeppe, Dima Pasechnik
0 commit comments