[SCM] Packaging for pyfai branch, experimental, updated. upstream/0.8.0-16-g566936b

Picca Frédéric-Emma?==?UTF-8?Q?nuel picca at debian.org
Tue Nov 20 15:02:59 UTC 2012


The following commit has been merged in the experimental branch:
commit e3e13e3553886cb2c9750776a546f96bac588310
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Tue Nov 20 14:34:13 2012 +0100

    add the test suite
    
    Conflicts:
    	debian/rules

diff --git a/debian/rules b/debian/rules
index adf9378..3360961 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,17 @@
 #!/usr/bin/make -f
 
+PYVERS=$(shell pyversions -vs)
+
 override_dh_auto_install:
 	dh_auto_install
 	dh_numpy
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+        set -e -x; \
+        for py in $(PYVERS); do \
+                cd $(CURDIR)/build/lib.*-$$py;\
+                env PYTHONPATH=. python$$py $(CURDIR)/test/test_all.py;\
+        done
+endif
 
 %:
-	dh $@ --with python2 --buildsystem=python_distutils
-
+	dh $@ --with python2

-- 
Packaging for pyfai



More information about the debian-science-commits mailing list