-
-
Notifications
You must be signed in to change notification settings - Fork 674
Open
Description
This change will make installations of Sage more robust.
Currently,
/SAGE_ROOT_A/sage -sh -c '/SAGE_ROOT_B/venv/bin/python3 -c "import sage.env; print(sage.env.SAGE_ROOT)"'
will give SAGE_ROOT_A
(bad), whereas
/SAGE_ROOT_A/sage -sh -c '/SAGE_ROOT_B/venv/bin/sage -c "import sage.env; print(sage.env.SAGE_ROOT)"'
will give SAGE_ROOT_B
(good).
Similarly to
- Top-level sage script: Unconditionally set SAGE_ROOT #33786 (Top-level sage script: Unconditionally set SAGE_ROOT) and
- sage-env, sage-build-env: No longer allow environment variables CC, CFLAGS, ... to override configured variables #32436 (
sage-env
,sage-build-env
: No longer allow environment variables CC, CFLAGS, ... to override configured variables)
CC: @jhpalmieri @kiwifb
Component: refactoring
Branch/Commit: u/mkoeppe/sage_env__give_values_from_sage_conf_precedence_over_environment_variables @ 4d20b92
Issue created by migration from https://trac.sagemath.org/ticket/34236