From 8b12ff3fc94c8164d70486a575d99667bcdee7df Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 26 Jul 2025 20:24:40 -0400 Subject: [PATCH] sage.sh: add speculative "meson setup" command --- sage.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sage.sh b/sage.sh index f980e3b..4bf5942 100644 --- 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: # -- 2.49.0