Skip to content
Snippets Groups Projects
Commit 6a15013a authored by Yaroslav Halchenko's avatar Yaroslav Halchenko
Browse files

force distutils build system + to run tests against "installed" version + run doctests

parent 1b1906aa
No related merge requests found
...@@ -9,7 +9,8 @@ PYVER = $(shell pyversions -vd) ...@@ -9,7 +9,8 @@ PYVER = $(shell pyversions -vd)
# Mega rule # Mega rule
%: %:
dh $@ : # Explicit build system to avoid use of all-in-1 Makefile
dh $@ --buildsystem=python_distutils
# Build docs during build # Build docs during build
override_dh_auto_build: override_dh_auto_build:
...@@ -37,9 +38,10 @@ python-install%: ...@@ -37,9 +38,10 @@ python-install%:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
: # Run unittests : # Run unittests
export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \ export PYTHONPATH=`/bin/ls -d $$PWD/build/lib.*$*` MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
python$* /usr/bin/nosetests -s --exclude '(manifold|test_gmm_em)' \ python$* /usr/bin/nosetests -s --exclude '(manifold|test_gmm_em)' \
$(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/scikits/learn $(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/scikits/learn; \
python$* /usr/bin/nosetests --doctest-extension=rst doc/
else else
: # Skip unittests due to nocheck : # Skip unittests due to nocheck
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment