Add option to make and install with C coverage

This commit is contained in:
Hugo 2017-10-02 14:56:05 +03:00
parent e6f9945493
commit d44727a2ac

View File

@ -44,6 +44,7 @@ help:
@echo " html to make standalone HTML files" @echo " html to make standalone HTML files"
@echo " inplace make inplace extension" @echo " inplace make inplace extension"
@echo " install make and install" @echo " install make and install"
@echo " install-coverage make and install with C coverage"
@echo " install-req install documentation and test dependencies" @echo " install-req install documentation and test dependencies"
@echo " install-venv install in virtualenv" @echo " install-venv install in virtualenv"
@echo " release-test run code and package tests before release" @echo " release-test run code and package tests before release"
@ -58,6 +59,10 @@ install:
python setup.py install python setup.py install
python selftest.py --installed python selftest.py --installed
install-coverage:
CFLAGS="-coverage" python setup.py build_ext install
python selftest.py --installed
debug: debug:
# make a debug version if we don't have a -dbg python. Leaves in symbols # make a debug version if we don't have a -dbg python. Leaves in symbols
# for our stuff, kills optimization, and redirects to dev null so we # for our stuff, kills optimization, and redirects to dev null so we