[SCM] The Molecular Modelling Toolkit packaging branch, master, updated. debian/2.7.8-1-5-g8a6e929

Picca Frédéric-Emmanuel picca at debian.org
Sun Jun 16 12:38:36 UTC 2013


The following commit has been merged in the master branch:
commit 8a6e9294d9e720dd2aa56ea9944663c5c810c2e4
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Sun Jun 16 14:05:17 2013 +0200

    reworked the test process to avoid problem with --twice

diff --git a/debian/rules b/debian/rules
index 1f13b1b..965484c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,10 @@
 #!/usr/bin/make -f
 
 export MMTK_USE_CYTHON=1
+export DH_VERBOSE=1
 
 VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
+PYVERS=$(shell pyversions -vs)
 
 get-orig-source:
 	uscan --force-download --upstream-version $(VERSION) --repack
@@ -10,12 +12,19 @@ get-orig-source:
 override_dh_auto_clean:
 	# remove the cpython generated files distributed by upstream
 	rm -f $(patsubst %.pyx,%.c,$(wildcard Src/*.pyx))
+	# remove .pyc files
+	rm -f $(wildcard Tests/*.pyc)
 	# remove the doc
 	rm -rf build
 
 override_dh_auto_test:
 	dh_auto_test
-	python setup.py test
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	set -e -x; \
+	for py in $(PYVERS); do \
+		python$$py setup.py test;\
+	done
+endif
 
 override_dh_auto_install:
 	dh_auto_install

-- 
The Molecular Modelling Toolkit packaging



More information about the debian-science-commits mailing list