]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
GNUmakefile: run check-sage with python -m sage.doctest master
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 30 Jan 2026 13:45:09 +0000 (08:45 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 30 Jan 2026 13:45:09 +0000 (08:45 -0500)
System installations of the sage library may not support "sage -t",
so use the more-reliable "python -m sage.doctest" instead.

GNUmakefile

index a3faa2f4e72bb2e096f86aaa806df0ee527cc59e..c0071cbfbb251aad56020ef092be3a1ff8bbf5d9 100644 (file)
@@ -214,14 +214,15 @@ check-chktex:
 check-undefined: $(BUILDDIR)/$(PN).log
        @! grep -i 'undefined' $<
 
-# Use sage to doctest any \sagelisting{}s in SAGE_LISTING_DSTS.
-# The actuall command is ifdef'd so that we can comment out
-# the definition of SAGE_LISTING_DSTS without breaking the
-# default definition of the "check" target.
+# Use SageMath to doctest any \sagelisting{}s in SAGE_LISTING_DSTS.
+# The actual command is ifdef'd so that we can comment out the
+# definition of SAGE_LISTING_DSTS without breaking the default
+# definition of the "check" target. Assumes that the sage library is
+# installed somewhere known to python.
 .PHONY: check-sage
 check-sage: $(SAGE_LISTING_DSTS)
 ifdef SAGE_LISTING_DSTS
-       sage -t --timeout=0 $^
+       python -m sage.doctest --timeout=0 $^
 endif
 
 # Run a suite of checks.