[SCM] Packaging for pytables branch, master, updated. debian/2.4.0-1-33-gd245091

Antonio Valentino antonio.valentino at tiscali.it
Sun Jun 23 14:25:53 UTC 2013


The following commit has been merged in the master branch:
commit 19b1bbc43835a58ffb086e452b5c0ab5b65147f5
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Sat Jun 1 19:15:39 2013 +0000

    Enabled automatic testing for dbg packages

diff --git a/debian/changelog b/debian/changelog
index 5001596..e42123a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ pytables (2.4.0-2) UNRELEASED; urgency=low
   * Updated copyright file
   * Standard version bumped to 3.9.4 (no changes)
   * Removed obsolete DM-Upload-Allowed field from the control file
+  * Enabled automatic testing for dbg packages 
 
  -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 04 Mar 2013 20:22:28 +0100
 
diff --git a/debian/rules b/debian/rules
index 288d2ac..7ab9784 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 export CFLAGS ?= -O0
 endif
-PYVERS=$(shell pyversions -vs)
+PY2VERS=$(shell pyversions -vs)
 
 %:
 	dh $@ --with python2 --with sphinxdoc --buildsystem=python_distutils
@@ -26,6 +26,28 @@ endif
 	dh_auto_build --buildsystem=python_distutils
 
 
+override_dh_install:
+	# Install everything excluding the *_d.so debug extensions to python-tables
+	dh_install -X"*_d.so" "debian/tmp/usr/lib/python2*" -p python-tables
+
+	# Install the debug extensions to python-tables-dbg
+	dh_install "debian/tmp/usr/lib/python2*/*-packages/tables/*_d.so" -p python-tables-dbg
+
+	# Continue with regular dh_install
+	dh_install -p python-tables-doc
+	dh_numpy
+	# using override_dh_auto_test causes problems for dbg versions
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	set -e -x; \
+	for py in $(PY2VERS); do \
+		cd $(CURDIR)/build/lib.*-$$py; \
+		env PYTHONPATH=. python$$py tables/tests/test_all.py -vvv; \
+		cd $(CURDIR)/debian/tmp/usr/lib/python$$py/dist-packages; \
+		env PYTHONPATH=. python$$py-dbg tables/tests/test_all.py -vvv; \
+	done
+endif
+
+
 override_dh_auto_clean:
 	# Avoid unnecessary cythonization (see
 	# https://github.com/PyTables/PyTables/issues/122)
@@ -51,25 +73,5 @@ override_dh_compress:
 	dh_compress -X.txt -X.pdf -X.py -X.h5
 
 
-override_dh_install:
-	# Install everything excluding the *_d.so debug extensions to python-tables
-	dh_install -X"*_d.so" "debian/tmp/*" -p python-tables
-
-	# Install the debug extensions to python-tables-dbg
-	dh_install "debian/tmp/usr/lib/python*/*-packages/tables/*_d.so" -p python-tables-dbg
-
-	# Continue with regular dh_install
-	dh_install -p python-tables-doc
-	dh_numpy
-ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	set -e -x; \
-	for py in $(PYVERS); do \
-		cd "$(CURDIR)/debian/tmp/usr/lib/python$$py/dist-packages/"; \
-		env PYTHONPATH=. python$$py tables/tests/test_all.py -vvv; \
-		#env PYTHONPATH=. python$$py-dbg tables/tests/test_all.py; \
-	done
-endif
-
-
 .PHONY: override_dh_auto_build override_dh_auto_clean override_dh_sphinxdoc \
         override_dh_install override_dh_installchangelogs override_dh_compress

-- 
Packaging for pytables



More information about the debian-science-commits mailing list