Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/sage_conf/src/sage_conf.py.in: Move SAGE_ROOT, SAGE_LOCAL …
Browse files Browse the repository at this point in the history
…to beginning of file; only use substitution @Prefix@ once
  • Loading branch information
Matthias Koeppe committed Apr 1, 2021
1 parent a89f81d commit 5161d65
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build/pkgs/sage_conf/src/sage_conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

VERSION = "@PACKAGE_VERSION@"

# The following must not be used during build to determine source or installation
# location of sagelib. See comments in SAGE_ROOT/src/Makefile.in
# These variables come first so that other substituted variable values can refer
# to it.
SAGE_LOCAL = "@prefix@"
SAGE_ROOT = "@SAGE_ROOT@"

MAXIMA = "@prefix@/bin/maxima"

ARB_LIBRARY = "@SAGE_ARB_LIBRARY@"
Expand All @@ -11,7 +18,7 @@ NTL_LIBDIR = "@NTL_LIBDIR@"

# Path to the ecl-config script
# TODO: At the moment this is hard-coded, needs to be set during the configure phase if we want to support system-installed ecl.
ECL_CONFIG = "@prefix@/bin/ecl-config"
ECL_CONFIG = "${prefix}/bin/ecl-config".subst('${prefix}', SAGE_LOCAL)

SAGE_NAUTY_BINS_PREFIX = "@SAGE_NAUTY_BINS_PREFIX@"

Expand All @@ -21,13 +28,8 @@ SAGE_NAUTY_BINS_PREFIX = "@SAGE_NAUTY_BINS_PREFIX@"
CBLAS_PC_MODULES = "cblas"

# Used in sage.repl.ipython_kernel.install
MATHJAX_DIR = "@prefix@/share/mathjax"
THREEJS_DIR = "@prefix@/share/threejs"

# The following must not be used during build to determine source or installation
# location of sagelib. See comments in SAGE_ROOT/src/Makefile.in
SAGE_LOCAL = "@prefix@"
SAGE_ROOT = "@SAGE_ROOT@"
MATHJAX_DIR = SAGE_LOCAL + "/share/mathjax"
THREEJS_DIR = SAGE_LOCAL + "/share/threejs"

# Entry point 'sage-config'. It does not depend on any packages.

Expand Down

0 comments on commit 5161d65

Please sign in to comment.