From 6a15013a1f0b17dae51619961d9c158ae0b83b01 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko <debian@onerussian.com> Date: Wed, 6 Oct 2010 15:31:06 -0400 Subject: [PATCH] force distutils build system + to run tests against "installed" version + run doctests --- debian/rules | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index cd572e9d7e..06d76c333d 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,8 @@ PYVER = $(shell pyversions -vd) # Mega rule %: - dh $@ + : # Explicit build system to avoid use of all-in-1 Makefile + dh $@ --buildsystem=python_distutils # Build docs during build override_dh_auto_build: @@ -37,9 +38,10 @@ python-install%: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) : # 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)' \ - $(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 : # Skip unittests due to nocheck endif -- GitLab