]> gitweb.michael.orlitzky.com - bash.d.git/commitdiff
sage.sh: add speculative "meson setup" command
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 27 Jul 2025 00:24:40 +0000 (20:24 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 27 Jul 2025 00:24:40 +0000 (20:24 -0400)
sage.sh

diff --git a/sage.sh b/sage.sh
index f980e3be507a7f99a127d89e653b66a806cfe27e..4bf5942e7509fdee5e3fcb1e5c52ceffacd0b79a 100644 (file)
--- a/sage.sh
+++ b/sage.sh
@@ -8,6 +8,30 @@ export SAGE_INSTALL_GCC=no
 # This is trinary, ha ha!
 export SAGE_DEBUG=no
 
+# A "meson setup" command that disables all of the optional features,
+# including the documentation, and sets up a prefix-based install.
+# Does not include the trailing build directory.
+#
+# Includes options from,
+#
+#   https://github.com/sagemath/sage/pull/40485
+#
+sage-meson-setup() {
+    meson setup \
+         --python.install-env=prefix \
+         --prefix="${HOME}/.local" \
+         -Dbuild-docs=false \
+         -Dbliss=disabled \
+         -Dbrial=disabled \
+         -Dcoxeter3=disabled \
+         -Dmcqd=disabled \
+         -Dmeataxe=disabled \
+         -Drankwidth=disabled \
+         -Dsirocco=disabled \
+         -Dtdlib=disabled \
+         "${@}"
+}
+
 # Run ./configure within the SageMath git repository. This tweaks all
 # of the flags that I don't want to tweak manually:
 #