Opened 13 months ago

Last modified 4 months ago

#30818 new enhancement

Meta-ticket: Set environment for subprocesses invoked by Sage

Reported by: mkoeppe Owned by:
Priority: major Milestone: sage-9.5
Component: refactoring Keywords: sd111
Cc: fbissey, gh-tobiasdiez, dimpase, arojas Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by mkoeppe)

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 of SAGE_LOCAL to SAGE_VENV, remove direct uses of SAGE_LOCAL from the Sage library
  • #31296 sage.features.Executable: Prepend $SAGE_VENV/bin:$SAGE_LOCAL/bin to PATH, remove dependency on distutils
  • #31275 qepcad
  • #29024 singular
  • #29644 gap
  • #30887 4ti2
  • environment for C compiler use at runtime (includes ARCHFLAGS - see #31227)
  • #31041 environment for sage.misc.cython

Change History (15)

comment:1 Changed 13 months ago by mkoeppe

  • Description modified (diff)

comment:2 Changed 13 months ago by mkoeppe

  • Description modified (diff)

comment:3 Changed 13 months ago by mkoeppe

  • Description modified (diff)

comment:4 Changed 13 months ago by mkoeppe

  • Description modified (diff)

comment:5 Changed 13 months ago by mkoeppe

  • 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 12 months ago by mkoeppe

  • Keywords sd111 added

Hoping we can make progress on this ticket this week - https://wiki.sagemath.org/days111

comment:7 Changed 12 months ago by mkoeppe

  • Description modified (diff)

comment:8 Changed 12 months ago by mkoeppe

  • Description modified (diff)

comment:9 Changed 10 months ago by mkoeppe

  • Description modified (diff)

comment:10 Changed 10 months ago by mkoeppe

  • Description modified (diff)

comment:11 Changed 10 months ago by mkoeppe

  • Description modified (diff)

comment:12 Changed 10 months ago by mkoeppe

  • Description modified (diff)

comment:13 Changed 8 months ago by mkoeppe

  • 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 5 months ago by mkoeppe

  • Cc arojas added
  • Description modified (diff)

comment:15 Changed 4 months ago by mkoeppe

  • Milestone changed from sage-9.4 to sage-9.5
Note: See TracTickets for help on using tickets.