X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=sage.sh;h=e205b4e70b4b744c944ae979880bc4d973f16aa9;hb=1fa0562b235112b33806d10d3d1eff52a4d52f63;hp=881d7086524e211f8333029d72390bbcd564dcae;hpb=f25c6eca864d1f2a9b069eeb5739c553da6f6d49;p=bash.d.git diff --git a/sage.sh b/sage.sh index 881d708..e205b4e 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 \ @@ -48,6 +58,8 @@ sage-configure() { --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 \ @@ -63,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 \ @@ -101,6 +114,7 @@ sage-configure() { --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 \ @@ -130,7 +144,9 @@ 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-pure_eval=force \ --with-system-pybind11=force \