]> gitweb.michael.orlitzky.com - bash.d.git/commitdiff
sage.sh: add sage-configure() function.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Jul 2021 12:18:54 +0000 (08:18 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Jul 2021 12:18:54 +0000 (08:18 -0400)
sage.sh

diff --git a/sage.sh b/sage.sh
index a1731186e7de6610a53efc8cfb54a51068b2c497..33d7f5aba101309d8260c81627403955cd891336 100644 (file)
--- a/sage.sh
+++ b/sage.sh
@@ -8,3 +8,79 @@ export SAGE_INSTALL_GCC=no
 # This is trinary, ha ha!
 export SAGE_DEBUG=no
 
+# Run ./configure within the SageMath git repository. This tweaks all
+# of the flags that I don't want to tweak manually:
+#
+#   * --enable-download-from-upstream-url: needed when adding new SPKGs
+#   * --disable-r: I don't really use R
+#   * --disable-cvxopt: I don't really use cvxopt
+#   * --with-system-foo=force: ensure that the system packages I have
+#                              installed are actually used.
+#
+# TODO: --with-system-gengetopt=force
+#       --with-system-lcalc=force
+#
+sage-configure() {
+  ./configure \
+    --enable-download-from-upstream-url \
+    --disable-r \
+    --disable-cvxopt \
+    --with-system-arb=force \
+    --with-system-boost_cropped=force \
+    --with-system-brial=force \
+    --with-system-bzip2=force \
+    --with-system-cddlib=force \
+    --with-system-cliquer=force \
+    --with-system-cmake=force \
+    --with-system-ecl=force \
+    --with-system-eclib=force \
+    --with-system-fflas_ffpack=force \
+    --with-system-flint=force \
+    --with-system-fplll=force \
+    --with-system-gc=force \
+    --with-system-gcc=force \
+    --with-system-gf2x=force \
+    --with-system-gfan=force \
+    --with-system-gfortran=force \
+    --with-system-giac=force \
+    --with-system-git=force \
+    --with-system-givaro=force \
+    --with-system-gsl=force \
+    --with-system-iconv=force \
+    --with-system-iml=force \
+    --with-system-isl=force \
+    --with-system-libatomic_ops=force \
+    --with-system-libbraiding=force \
+    --with-system-libffi=force \
+    --with-system-libgd=force \
+    --with-system-libhomfly=force \
+    --with-system-libnauty=force \
+    --with-system-libpng=force \
+    --with-system-lrcalc=force \
+    --with-system-m4ri=force \
+    --with-system-m4rie=force \
+    --with-system-mpfr=force \
+    --with-system-nauty=force \
+    --with-system-ncurses=force \
+    --with-system-ninja_build=force \
+    --with-system-ntl=force \
+    --with-system-openblas=force \
+    --with-system-pari=force \
+    --with-system-patch=force \
+    --with-system-perl_term_readline_gnu=force \
+    --with-system-planarity=force \
+    --with-system-ppl=force \
+    --with-system-python3=force \
+    --with-system-readline=force \
+    --with-system-rw=force \
+    --with-system-sqlite=force \
+    --with-system-suitesparse=force \
+    --with-system-symmetrica=force \
+    --with-system-sympow=force \
+    --with-system-tachyon=force \
+    --with-system-tox=force \
+    --with-system-yasm=force \
+    --with-system-xz=force \
+    --with-system-zeromq=force \
+    --with-system-zlib=force
+}