-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Add -version, -root, and -branch for printing version, SAGE_ROOT, and branch information. #433
Comments
comment:1
This thing won't let me attach a bundle, so here's the text of the trivial patch.
|
tobiasdiez
pushed a commit
to tobiasdiez/sage
that referenced
this issue
Feb 22, 2024
* Add initial support for poetry
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add -version, -root, and -branch for printing version, SAGE_ROOT, and branch information.
Useful from the command line.
Version information is taken from sage-banner; I would prefer it to be taken from the mercurial tags, but these are not kept updated.
The root information is taken from the environment via sage-env.
The branch information is taken from readlink SAGE_ROOT/devel/sage.
mero:~/sage/local/bin ncalexan$ sage -v
SAGE Version 2.8, Release Date: 2007-08-12
mero:~/sage/local/bin ncalexan$ sage -version
SAGE Version 2.8, Release Date: 2007-08-12
mero:~/sage/local/bin ncalexan$ sage -branch
nca
mero:~/sage/local/bin ncalexan$ sage -root
/Users/ncalexan/sage
Component: user interface
Keywords: version root branch
Issue created by migration from https://trac.sagemath.org/ticket/433
The text was updated successfully, but these errors were encountered: