-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/bin/sage-env: Make sure $SAGE_VENV/bin is at the beginning of the PATH #30013
Comments
Dependencies: #25486 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Matthias Koeppe |
comment:15
Using the new script |
This comment has been minimized.
This comment has been minimized.
comment:17
Replying to @mkoeppe:
Why do you actually need go through the trouble of determining |
comment:18
Replying to @tobiasdiez:
Yes, for all Python scripts, |
Reviewer: Tobias Diez, Dima Pasechnik |
comment:19
lgtm |
comment:20
Thanks! |
Changed keywords from none to sd111 |
Changed branch from u/mkoeppe/src_bin_sage_env__make_sure__sage_venv_bin_is_at_the_beginning_of_the_path to |
Changed commit from |
comment:24
This breaks if
If this is really intended and sage_conf is now mandatory, then ImportError from sage_conf shouldn't be trapped. But I hope it can still be possible to support |
comment:25
|
comment:26
OK, glad to hear - so what should we do if there's no sage_conf? don't add the |
comment:27
I have created #31058 for this |
Follow-up from #25486 (Discover
SAGE_SCRIPTS_DIR
to make$SAGE_LOCAL/bin/sage
work from any directory, in an environment withoutSAGE_*
variables) and #22731.We make sure that
$SAGE_VENV/bin
(from #22731) appears at the beginning of thePATH
. 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 thatsage-eval
is invoked bysage
;python3
is run.To determine
SAGE_VENV
:src/bin/sage
is invoked directly out of the source tree, it will run a new non-installedconfigure
-generated scriptsage-src-env-config
sage
script installed bysetup.py
inSAGE_LOCAL
or in a venv will run a Python scriptsage-venv-config
instead.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
The text was updated successfully, but these errors were encountered: