X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=sage.sh;h=c5cb345636ae68869d0fe76d14f5d1e8c150cbb8;hb=b3071258592ccdd105914190e5f91645f2ed2932;hp=783479d262f6156342762e6dd5ed521df6bd08c4;hpb=2b146a7037c1935328ad555167710de5d7f2a779;p=bash.d.git diff --git a/sage.sh b/sage.sh index 783479d..c5cb345 100644 --- a/sage.sh +++ b/sage.sh @@ -8,6 +8,13 @@ export SAGE_INSTALL_GCC=no # This is trinary, ha ha! export SAGE_DEBUG=no +# Print the path to either ninja (default) or samurai (if set via +# $NINJA). +_sage_find_ninja(){ + [ -z "${NINJA}" ] && NINJA=ninja + command -v "${NINJA}" +} + # Run ./configure within the SageMath git repository. This tweaks all # of the flags that I don't want to tweak manually: # @@ -21,7 +28,10 @@ export SAGE_DEBUG=no # * --with-system-foo=force: ensure that the system packages I have # installed are actually used. # +# We also override the autoconf variable used to detect ninja, because +# it does a version check that isn't compatible with samurai. sage-configure() { + ac_cv_path_NINJA=$(_sage_find_ninja) \ ./configure \ --enable-download-from-upstream-url \ --enable-system-site-packages \ @@ -45,9 +55,14 @@ sage-configure() { --with-system-cliquer=force \ --with-system-cmake=force \ --with-system-contourpy=force \ + --with-system-cppy=force \ --with-system-curl=force \ --with-system-cycler=force \ + --with-system-cypari=force \ + --with-system-cysignals=force \ + --with-system-cython=force \ --with-system-dateutil=force \ + --with-system-debugpy=force \ --with-system-decorator=force \ --with-system-docutils=force \ --with-system-ecl=force \ @@ -60,6 +75,7 @@ sage-configure() { --with-system-flit_core=force \ --with-system-fonttools=force \ --with-system-fplll=force \ + --with-system-fpylll=force \ --with-system-gast=force \ --with-system-gc=force \ --with-system-gcc=force \ @@ -70,12 +86,15 @@ sage-configure() { --with-system-giac=force \ --with-system-git=force \ --with-system-givaro=force \ + --with-system-gmpy2=force \ --with-system-gsl=force \ --with-system-hatchling=force \ --with-system-iconv=force \ --with-system-idna=force \ --with-system-iml=force \ --with-system-importlib_metadata=force \ + --with-system-ipython=force \ + --with-system-ipywidgets=force \ --with-system-isl=force \ --with-system-jedi=force \ --with-system-jinja2=force \ @@ -90,12 +109,14 @@ sage-configure() { --with-system-libpng=force \ --with-system-linbox=force \ --with-system-lrcalc=force \ + --with-system-lrcalc_python=force \ --with-system-m4ri=force \ --with-system-m4rie=force \ --with-system-markupsafe=force \ --with-system-matplotlib=force \ --with-system-matplotlib_inline=force \ --with-system-maxima=force \ + --with-system-memory_allocator=force \ --with-system-meson=force \ --with-system-meson_python=force \ --with-system-mpfr=force \ @@ -112,6 +133,7 @@ sage-configure() { --with-system-pari=force \ --with-system-parso=force \ --with-system-patch=force \ + --with-system-patchelf=force \ --with-system-pathspec=force \ --with-system-perl_term_readline_gnu=force \ --with-system-pexpect=force \ @@ -124,8 +146,11 @@ sage-configure() { --with-system-ply=force \ --with-system-pluggy=force \ --with-system-ppl=force \ + --with-system-pplpy=force \ --with-system-primecount=force \ + --with-system-primecountpy=force \ --with-system-primesieve=force \ + --with-system-prompt_toolkit=force \ --with-system-pure_eval=force \ --with-system-pybind11=force \ --with-system-pygments=force \ @@ -153,6 +178,7 @@ sage-configure() { --with-system-tornado=force \ --with-system-tox=force \ --with-system-traitlets=force \ + --with-system-typing_extensions=force \ --with-system-urllib3=force \ --with-system-wcwidth=force \ --with-system-wheel=force \