-
-
Notifications
You must be signed in to change notification settings - Fork 654
Closed
Milestone
Description
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,
- We replace all direct uses of
SAGE_TMP
within the sage library and doctests. - We update
tmp_dir()
andtmp_filename()
to use thetempfile
defaults. - 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.
Depends on #33829
Depends on #33790
Component: misc
Author: Michael Orlitzky
Branch: d94a1e6
Reviewer: Matthias Koeppe, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/33213