Added debug option to makefile
This commit is contained in:
parent
2608ac3ccc
commit
6fd6176ff8
3
makefile
3
makefile
|
@ -20,6 +20,9 @@ develop:
|
|||
test:
|
||||
$(SAGE) setup.py test
|
||||
|
||||
debug:
|
||||
$(SAGE) setup.py debug
|
||||
|
||||
coverage:
|
||||
$(SAGE) -coverage $(PACKAGE)/*
|
||||
|
||||
|
|
9
setup.py
9
setup.py
|
@ -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'],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue