[pytables] 01/01: Restore -dbg packages

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Mon Aug 14 20:02:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

a_valentino-guest pushed a commit to branch master
in repository pytables.

commit f65311c366ae92b8b48f50e310635f5192a889c9
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Mon Aug 14 17:50:01 2017 +0200

    Restore -dbg packages
---
 debian/changelog         |  4 +--
 debian/control           | 76 ++++++++++++++++++++++++++++++++++++++++++++++--
 debian/rules             | 19 ++++++++++++
 debian/tests/control     |  5 ++++
 debian/tests/python2-dbg | 13 +++++++++
 debian/tests/python3-dbg | 13 +++++++++
 6 files changed, 125 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dd6bab1..ec71b39 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,11 +17,9 @@ pytables (3.4.2-1) unstable; urgency=medium
     - add build dependency from python(3)-sphinx-rtd-theme,
       python(3)-ipython, python(3)-numpydoc and python-mock
     - add dependency from libjs-mathjax and python(3)-mock
-    - set Multi-Arch fields
     - depend on python3-sphinx instead of pyhton-sphinx
   * Install scripts (and related manpages) for the python3 version
     of the package
-  * Remove -dbg packages (now they are built automatically)
   * debian/rules
     - no longer use dpkg-parsechangelog to determine the current
       package timestamp
@@ -30,7 +28,7 @@ pytables (3.4.2-1) unstable; urgency=medium
     - new lintian overrides for library-package-name-for-application
       and application-in-library-section
 
- -- Antonio Valentino <antonio.valentino at tiscali.it>  Sun, 13 Aug 2017 10:07:35 +0000
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 14 Aug 2017 19:52:55 +0000
 
 pytables (3.3.0-5) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 6c9af9e..d1da5ee 100644
--- a/debian/control
+++ b/debian/control
@@ -10,19 +10,27 @@ Build-Depends: debhelper (>= 9.0.0),
                locales,
                libhdf5-dev,
                python-all-dev,
+               python-all-dbg,
                python3-all-dev,
+               python3-all-dbg,
                python-setuptools,
                python3-setuptools,
                python-six,
                python3-six,
                python-numpy,
+               python-numpy-dbg,
                python3-numpy,
+               python3-numpy-dbg,
                python-numexpr,
+               python-numexpr-dbg,
                python3-numexpr,
+               python3-numexpr-dbg,
                python-mock,
                python3-mock,
                cython,
+               cython-dbg,
                cython3,
+               cython3-dbg,
                zlib1g-dev,
                liblzo2-dev,
                libblosc-dev,
@@ -80,7 +88,6 @@ Description: hierarchical database for Python based on HDF5
 
 Package: python-tables-lib
 Architecture: any
-Multi-Arch: same
 Depends: ${misc:Depends},
          ${python:Depends},
          ${shlibs:Depends}
@@ -106,6 +113,39 @@ Description: hierarchical database for Python based on HDF5 (extension)
  .
  This package contains the extension built for the Python 2 interpreter.
 
+Package: python-tables-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends},
+         ${python:Depends},
+         ${shlibs:Depends},
+         python-tables (= ${source:Version}),
+         python-tables-lib (= ${binary:Version}),
+         python-dbg,
+         python-numpy-dbg,
+         python-numexpr-dbg
+Suggests: python-tables-doc,
+          python-netcdf
+Description: hierarchical database for Python based on HDF5 (debug extension)
+ PyTables is a hierarchical database package designed to efficiently
+ manage very large amounts of data. PyTables is built on top of the
+ HDF5 library and the NumPy package. It features an object-oriented
+ interface that, combined with natural naming and C-code generated
+ from Pyrex sources, makes it a fast, yet extremely easy to use tool
+ for interactively save and retrieve large amounts of data.
+ .
+  - Compound types (records) can be used entirely from Python (i.e. it
+    is not necessary to use C for taking advantage of them).
+  - The tables are both enlargeable and compressible.
+  - I/O is buffered, so you can get very fast I/O, specially with
+    large tables.
+  - Very easy to select data through the use of iterators over the
+    rows in tables. Extended slicing is supported as well.
+  - It supports the complete set of NumPy, Numeric and numarray objects.
+ .
+ This package contains the extension built for the Python 2 debug interpreter.
+
 Package: python3-tables
 Architecture: all
 Depends: ${misc:Depends},
@@ -139,7 +179,6 @@ Description: hierarchical database for Python3 based on HDF5
 
 Package: python3-tables-lib
 Architecture: any
-Multi-Arch: same
 Depends: ${misc:Depends},
          ${python3:Depends},
          ${shlibs:Depends}
@@ -165,6 +204,39 @@ Description: hierarchical database for Python3 based on HDF5 (extension)
  .
  This package contains the extension built for the Python 3 interpreter.
 
+Package: python3-tables-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         ${shlibs:Depends},
+         python3-tables (= ${source:Version}),
+         python3-tables-lib (= ${binary:Version}),
+         python3-dbg,
+         python3-numpy-dbg,
+         python3-numexpr-dbg
+Suggests: python-tables-doc,
+          python-netcdf
+Description: hierarchical database for Python 3 based on HDF5 (debug extension)
+ PyTables is a hierarchical database package designed to efficiently
+ manage very large amounts of data. PyTables is built on top of the
+ HDF5 library and the NumPy package. It features an object-oriented
+ interface that, combined with natural naming and C-code generated
+ from Pyrex sources, makes it a fast, yet extremely easy to use tool
+ for interactively save and retrieve large amounts of data.
+ .
+  - Compound types (records) can be used entirely from Python (i.e. it
+    is not necessary to use C for taking advantage of them).
+  - The tables are both enlargeable and compressible.
+  - I/O is buffered, so you can get very fast I/O, specially with
+    large tables.
+  - Very easy to select data through the use of iterators over the
+    rows in tables. Extended slicing is supported as well.
+  - It supports the complete set of NumPy, Numeric and numarray objects.
+ .
+ This package contains the extension built for the Python 3 debug interpreter.
+
 Package: python-tables-doc
 Architecture: all
 Section: doc
diff --git a/debian/rules b/debian/rules
index 0ab8791..42f9e8b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,7 @@ endif
 
 build-python%:
 	python$* setup.py build
+	python$*-dbg setup.py build
 
 
 override_dh_auto_build: $(PY3VERS:%=build-python%)
@@ -47,6 +48,7 @@ endif
 
 install-python%:
 	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+	python$*-dbg setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
 
 
 override_dh_auto_install: $(PY3VERS:%=install-python%)
@@ -64,6 +66,10 @@ override_dh_install:
 	dh_install -X"*dmu.so" -X"*dm.so" "debian/tmp/usr/lib/python3*/*-packages/tables/*.so" -p python3-tables-lib
 	find debian/python3-tables-lib -name '*.cpython-??dm-*.so' | xargs -r rm -f
 
+	# Install the debug extensions to python(3)-tables-dbg
+	dh_install "debian/tmp/usr/lib/python2*/*-packages/tables/*_d.so" -p python-tables-dbg
+	dh_install "debian/tmp/usr/lib/python3*/*-packages/tables/*.cpython-??dm*.so" -p python3-tables-dbg
+
 	# Continue with regular dh_install
 	dh_install -p python-tables-doc
 	dh_install -p python-tables-data
@@ -116,6 +122,10 @@ ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 		env PYTHONPATH=. \
 			LOCPATH=$(CURDIR)/tmp-locales LC_ALL=en_US.UTF-8 \
 			python$$py tables/tests/test_all.py -vvv; \
+		cd $(CURDIR)/debian/tmp/usr/lib/python$$py/dist-packages; \
+		env PYTHONPATH=. \
+			LOCPATH=$(CURDIR)/tmp-locales LC_ALL=en_US.UTF-8 \
+			python$$py-dbg tables/tests/test_all.py -vvv; \
 	done
 	set -e -x; \
 	for py in $(PY3VERS); do \
@@ -123,10 +133,19 @@ ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 		env PYTHONPATH=. \
 			LOCPATH=$(CURDIR)/tmp-locales LC_ALL=en_US.UTF-8 \
 			python$$py tables/tests/test_all.py -vvv; \
+		cd $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages; \
+		env PYTHONPATH=. \
+			LOCPATH=$(CURDIR)/tmp-locales LC_ALL=en_US.UTF-8 \
+			python$$py-dbg tables/tests/test_all.py -vvv; \
 	done
 endif
 
 
+override_dh_strip:
+	dh_strip -ppython-tables-lib  --dbg-package=python-tables-dbg
+	dh_strip -ppython3-tables-lib --dbg-package=python3-tables-dbg
+
+
 override_dh_auto_clean:
 	# Avoid unnecessary cythonization (see
 	# https://github.com/PyTables/PyTables/issues/122)
diff --git a/debian/tests/control b/debian/tests/control
index 93ec67d..1571ef4 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,11 @@
 Tests: python2
 Depends: python-tables, python-all
 
+Tests: python2-dbg
+Depends: python-tables-dbg, python-all-dbg
+
 Tests: python3
 Depends: python3-tables, python3-all
 
+#Tests: python3-dbg
+#Depends: python3-tables-dbg, python3-all-dbg
diff --git a/debian/tests/python2-dbg b/debian/tests/python2-dbg
new file mode 100644
index 0000000..4876804
--- /dev/null
+++ b/debian/tests/python2-dbg
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
+TESTPKG=${TESTPKG:-tables}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py-dbg -c "import $TESTPKG, sys; sys.exit($TESTPKG.test(verbose=2))" 2>&1
+done
+
diff --git a/debian/tests/python3-dbg b/debian/tests/python3-dbg
new file mode 100644
index 0000000..8ca9c4b
--- /dev/null
+++ b/debian/tests/python3-dbg
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
+TESTPKG=${TESTPKG:-tables}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py-dbg -c "import $TESTPKG, sys; sys.exit($TESTPKG.test(verbose=2))" 2>&1
+done
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytables.git



More information about the debian-science-commits mailing list