Skip to content

Meta-ticket: Set environment for subprocesses invoked by Sage #30818

@mkoeppe

Description

@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:

Taken care of in separate tickets:

CC: @kiwifb @tobiasdiez @dimpase @antonio-rojas @orlitzky @seblabbe

Component: refactoring

Keywords: sd111

Issue created by migration from https://trac.sagemath.org/ticket/30818

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions