mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 18:25:32 +08:00
added variables to Makefile for build time configuration
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
.PHONY: all clean test
|
||||
PYTHON=python
|
||||
NOSETESTS=nosetests
|
||||
|
||||
all:
|
||||
python setup.py build_ext --inplace
|
||||
$(PYTHON) setup.py build_ext --inplace
|
||||
|
||||
clean:
|
||||
find . -name "*.so" -o -name "*.pyc" -o -name "*.pyx.md5" -o -name "*.pyd" | xargs rm -f
|
||||
find . -name "*.pyx" -exec ./tools/rm_pyx_c_file.sh {} \;
|
||||
|
||||
test:
|
||||
python -c "import skimage, sys, io; sys.exit(skimage.test_verbose())"
|
||||
$(PYTHON) -c "import skimage, sys, io; sys.exit(skimage.test_verbose())"
|
||||
|
||||
doctest:
|
||||
python -c "import skimage, sys, io; sys.exit(skimage.doctest_verbose())"
|
||||
$(PYTHON) -c "import skimage, sys, io; sys.exit(skimage.doctest_verbose())"
|
||||
|
||||
coverage:
|
||||
nosetests skimage --with-coverage --cover-package=skimage
|
||||
$(NOSETESTS) skimage --with-coverage --cover-package=skimage
|
||||
|
||||
html:
|
||||
pip install -q sphinx
|
||||
|
||||
Reference in New Issue
Block a user