From: Michael Orlitzky Date: Fri, 30 Jan 2026 13:45:09 +0000 (-0500) Subject: GNUmakefile: run check-sage with python -m sage.doctest X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;ds=sidebyside;p=mjotex.git GNUmakefile: run check-sage with python -m sage.doctest System installations of the sage library may not support "sage -t", so use the more-reliable "python -m sage.doctest" instead. --- diff --git a/GNUmakefile b/GNUmakefile index a3faa2f..c0071cb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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.