Added debug option to makefile

This commit is contained in:
Montessinos Mickael Gerard Bernard 2024-03-07 12:20:39 +02:00
parent 2608ac3ccc
commit 6fd6176ff8
2 changed files with 11 additions and 1 deletions

View File

@ -20,6 +20,9 @@ develop:
test:
$(SAGE) setup.py test
debug:
$(SAGE) setup.py debug
coverage:
$(SAGE) -coverage $(PACKAGE)/*

View File

@ -18,6 +18,13 @@ class SageTest(TestCommand):
if errno != 0:
sys.exit(1)
# For the tests
class SageDebug(TestCommand):
def run_tests(self):
errno = os.system("sage -t --debug --force-lib vector_bundle")
if errno != 0:
sys.exit(1)
setup(
name = "vector_bundle",
version = readfile("VERSION").strip(), # the VERSION file is shared with the documentation
@ -44,7 +51,7 @@ setup(
], # classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords = "Algebraic Geometry Number Theory Curves Vector Bundles",
packages = ['vector_bundle'],
cmdclass = {'test': SageTest}, # adding a special setup command for tests
cmdclass = {'test': SageTest, 'debug': SageDebug}, # adding a special setup command for tests and debugs
setup_requires = ['sage-package'],
install_requires = ['sage-package', 'sphinx'],
)