Opened 22 months ago
Last modified 3 months ago
#30818 new enhancement
Meta-ticket: Set environment for subprocesses invoked by Sage
Reported by: | mkoeppe | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-9.7 |
Component: | refactoring | Keywords: | sd111 |
Cc: | fbissey, gh-tobiasdiez, dimpase, arojas, mjo, slabbe | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
Instead of relying on running in an environment set up by sage-env
, we should set up specific environment variables whenever we invoke executables. This will be configurable through sage_conf
.
This is so that Sage is fully functional even when not being run from within sage-env
. This continues what was done in #29038/#30563 for Maxima.
As this ticket removes some hard-coded paths depending on SAGE_LOCAL
from sagelib, it will reduce the need for patching for downstream packaging.
A possible implementation strategy goes through sage.features.Executable
.
This is part of:
- #21707 Meta-ticket: Split
sage-env
into 5 to clean up sage configuration
Taken care of in separate tickets:
- #32036
sage.env
: Remove fallback ofSAGE_LOCAL
toSAGE_VENV
, remove direct uses ofSAGE_LOCAL
from the Sage library - #31296
sage.features.Executable
: Prepend$SAGE_VENV/bin:$SAGE_LOCAL/bin
toPATH
, remove dependency ondistutils
- #31275 qepcad
- #29024/#33440 singular
- #30887 4ti2
- #33465
sage.graphs
: UseExecutable.absolute_filename()
- #33466
lrs
- #32645
cddlib
- #33467
palp
- #33468
gfan
- #33405 Eliminate direct use of
os.getenv
insage.interfaces
- #29644 gap
- environment for C compiler use at runtime (includes
ARCHFLAGS
- see #31227) - #31041 environment for
sage.misc.cython
Change History (19)
comment:1 Changed 22 months ago by
- Description modified (diff)
comment:2 Changed 22 months ago by
- Description modified (diff)
comment:3 Changed 22 months ago by
- Description modified (diff)
comment:4 Changed 22 months ago by
- Description modified (diff)
comment:5 Changed 21 months ago by
- Description modified (diff)
- Summary changed from Set environment for subprocesses invoked by Sage to Meta-ticket: Set environment for subprocesses invoked by Sage
comment:6 Changed 20 months ago by
- Keywords sd111 added
comment:7 Changed 20 months ago by
- Description modified (diff)
comment:8 Changed 20 months ago by
- Description modified (diff)
comment:9 Changed 19 months ago by
- Description modified (diff)
comment:10 Changed 19 months ago by
- Description modified (diff)
comment:11 Changed 19 months ago by
- Description modified (diff)
comment:12 Changed 18 months ago by
- Description modified (diff)
comment:13 Changed 17 months ago by
- Milestone changed from sage-9.3 to sage-9.4
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.
comment:14 Changed 14 months ago by
- Cc arojas added
- Description modified (diff)
comment:15 Changed 13 months ago by
- Milestone changed from sage-9.4 to sage-9.5
comment:16 Changed 8 months ago by
- Milestone changed from sage-9.5 to sage-9.6
comment:17 Changed 5 months ago by
- Cc mjo added
- Description modified (diff)
comment:18 Changed 5 months ago by
- Cc slabbe added
- Description modified (diff)
comment:19 Changed 3 months ago by
- Milestone changed from sage-9.6 to sage-9.7
Hoping we can make progress on this ticket this week - https://wiki.sagemath.org/days111