-
-
Notifications
You must be signed in to change notification settings - Fork 789
Closed
Milestone
Description
Follow-up from #25486 (Discover SAGE_SCRIPTS_DIR to make $SAGE_LOCAL/bin/sage work from any directory, in an environment without SAGE_* variables) and #22731.
We make sure that $SAGE_VENV/bin (from #22731) appears at the beginning of the PATH. For virtual environments such as those set up by tox (#29950), this may be different from and should take precedence over $SAGE_LOCAL/bin. This will ensure that
- the correct copy of auxiliary scripts such as
sage-evalis invoked bysage; - the correct copy of
python3is run.
To determine SAGE_VENV:
- If
src/bin/sageis invoked directly out of the source tree, it will run a new non-installedconfigure-generated scriptsage-src-env-config - An installed
sagescript installed bysetup.pyinSAGE_LOCALor in a venv will run a Python scriptsage-venv-configinstead.
Depends on #29852
CC: @orlitzky @jhpalmieri
Component: scripts
Keywords: sd111
Author: Matthias Koeppe
Branch: 0140f84
Reviewer: Tobias Diez, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/30013
Reactions are currently unavailable