From 10aa155084011e1d22121c32b923fdf5ee2bb38e Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 30 Jan 2026 08:45:09 -0500 Subject: [PATCH] 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. --- GNUmakefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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. -- 2.51.0