This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/bin/sage-src-env-config.in: New, sourced in src/bin/sage
- Loading branch information
Matthias Koeppe
committed
Nov 13, 2020
1 parent
d372ecf
commit 0140f84
Showing
4 changed files
with
45 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- shell-script -*- @configure_input@ | ||
|
||
########################################################################### | ||
# | ||
# Set some environment variables that are needed at the runtime of Sage | ||
# and by its child processes. | ||
# | ||
# This file is only for use when sage is invoked from SAGE_ROOT. | ||
# It is not installed in SAGE_LOCAL. | ||
# | ||
# NOTES: | ||
# - You must *source* this script instead of executing. | ||
# - Use "return" instead of "exit" to signal a failure. Since this | ||
# file is sourced, an "exit" here will actually exit src/bin/sage, | ||
# which is probably not intended. | ||
# - Environment variables that should be available in the Sage environment | ||
# should be exported. | ||
# - This file is only for setting immediate values. Any kind of conditionals | ||
# or computed values are to be set by src/bin/sage-env after sourcing this | ||
# file. | ||
# - Environment variables that are only needed at the time of building | ||
# SPKGs or sagelib should be set in build/bin/sage-build-env-config | ||
# instead. | ||
# - Configuration variables that are only needed by the Sage runtime, | ||
# but not as environment variables, should instead be set in | ||
# build/pkgs/sage_conf/src/sage_conf.py | ||
# | ||
########################################################################## | ||
|
||
# SAGE_LOCAL is the installation prefix and can be customized by using | ||
# ./configure --prefix | ||
export SAGE_LOCAL="@prefix@" | ||
|
||
# SAGE_VENV is the root of the virtual environment of sagelib. | ||
# Currently, it is identical to SAGE_LOCAL | ||
export SAGE_VENV="@prefix@" | ||
|
||
# SAGE_ROOT is the location of the Sage source/build tree. | ||
export SAGE_ROOT="@SAGE_ROOT@" |