-
-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #31296: sage.features.Executable: Prepend $SAGE_VENV/bin:$SAGE_L…
…OCAL/bin to PATH Follow-up from #22731. This is so that Sage becomes fully functional even when not being run from within `sage-env` (which sets `PATH`) Of course, `PATH` is not actually manipulated, only `Executable` finds the executable in more places. As an illustration, we update `sage.interfaces.four_ti_2` and `sage.interfaces.latte` to use `Executable.absolute_filename()` from #31292. Then, after `sage -i 4ti2 latte_int`, the following works with this ticket: {{{ $ venv/bin/python3 -c 'import sage.all; from sage.interfaces.four_ti_2 import four_ti_2; print(four_ti_2.groebner(lat=[[1,2,3],[1,1,1]]))' $ venv/bin/python3 -c 'from sage.all import *; print(Polyhedron([[-3, 0], [0, 9]]).volume(measure="induced_rational"))' 3 }}} In follow-up tickets, other code that calls executables needs to be updated to use `Executable.absolute_path()` from #31292. The first tickets to do so are #33440, #33465, #33466, #32645, #33467, #33405. This is work towards: - #30818 Meta-ticket: Set environment for subprocesses invoked by Sage - #31295 Meta-ticket: Replace imports from deprecated distutils URL: https://trac.sagemath.org/31296 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Dima Pasechnik, Tobias Diez
- Loading branch information
Showing
6 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters