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

Antonio Valentino antonio.valentino at tiscali.it
Sat Jun 1 20:55:57 UTC 2013


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

    New packages for Python 3

diff --git a/debian/changelog b/debian/changelog
index 3a4275f..9f94735 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ pytables (3.0.0-1) UNRELEASED; urgency=low
   * Added a man page for the new pt2pt3 command line tool
   * Depend on numexpr >= 2.0
   * Minimum Python version is now 2.6
+  * New packages for Python 3
 
  -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 04 Mar 2013 20:22:28 +0100
 
diff --git a/debian/control b/debian/control
index 00193b9..bac2ac8 100644
--- a/debian/control
+++ b/debian/control
@@ -8,11 +8,16 @@ Vcs-Git: git://git.debian.org/git/debian-science/packages/pytables.git
 Vcs-Browser: http://git.debian.org/?p=debian-science/packages/pytables.git
 Standards-Version: 3.9.4
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Build-Depends: debhelper (>= 9.0.0), libhdf5-dev (>= 1.8.4-patch1),
                python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.6.6-3~),
+               python3-all-dev, python3-all-dbg,
                python-numpy (>= 1:1.4.1-4~), python-numpy-dbg (>= 1:1.4.1-4~),
+               python3-numpy, python3-numpy-dbg,
                python-numexpr (>= 2.0), python-numexpr-dbg,
-               cython (>= 0.13), cython-dbg (>= 0.13), zlib1g-dev, liblzo2-dev,
+               python3-numexpr, python3-numexpr-dbg,
+               cython (>= 0.13), cython-dbg, cython3, cython3-dbg, 
+               zlib1g-dev, liblzo2-dev,
                libbz2-dev, python-sphinx (>= 1.0.7+dfsg),
                texlive-latex-recommended, texlive-latex-extra,
                texlive-fonts-recommended
@@ -68,6 +73,57 @@ Description: hierarchical database for Python based on HDF5 (debug extension)
  .
  This package contains the extension built for the Python debug interpreter.
 
+Package: python3-tables
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends},
+         python3-numexpr (>= 2.0)
+Recommends: ${shlibs:Recommends}
+Suggests: python-tables-doc, python-netcdf, ${shlibs:Suggests} vitables
+Description: hierarchical database for Python3 based on HDF5
+ 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.
+
+Package: python3-tables-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends},
+         python3-tables (= ${binary:Version})
+Recommends: ${shlibs:Recommends}, python3-dbg, python3-numpy-dbg,
+            python3-numexpr-dbg
+Suggests: python-tables-doc, python-netcdf, ${shlibs:Suggests}
+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
 Section: doc
 Architecture: all
diff --git a/debian/python-tables.install b/debian/python-tables.install
index de22214..1df36c6 100644
--- a/debian/python-tables.install
+++ b/debian/python-tables.install
@@ -1,2 +1 @@
 usr/bin/*
-usr/lib/*
diff --git a/debian/rules b/debian/rules
index d4ac3c6..80662c8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,16 +4,26 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+
+# Get the supported Python versions
+PY2VERS = $(shell pyversions -r -v)
+PY3VERS = $(shell py3versions -r -v)
+
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 export CFLAGS ?= -O0
 endif
-PYVERS=$(shell pyversions -vs)
+
 
 %:
-	dh $@ --with python2 --with sphinxdoc --buildsystem=python_distutils
+	dh $@ --with python2,python3 --with sphinxdoc --buildsystem=python_distutils
 
 
-override_dh_auto_build:
+build-python%:
+	python$* setup.py build
+	python$*-dbg setup.py build
+
+
+override_dh_auto_build: $(PY3VERS:%=build-python%)
 ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
 	$(MAKE) PWD=$(CURDIR)
 	$(MAKE) -C doc PWD=$(CURDIR) latexpdf
@@ -27,15 +37,53 @@ endif
 	dh_auto_build --buildsystem=python_distutils
 
 
+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%)
+	dh_auto_install
+
+
+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
+	dh_install -X"*dmu.so" -X"*dm.so" "debian/tmp/usr/lib/python3*" -p python3-tables
+
+	# Install the debug extensions to python-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_numpy
+	dh_numpy3
+	# 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
+	set -e -x; \
+	for py in $(PY3VERS); do \
+		cd $(CURDIR)/build/lib.*-$$py; \
+		env PYTHONPATH=. python$$py tables/tests/test_all.py -vvv; \
+		#cd $(CURDIR)/debian/tmp/usr/lib/python3/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)
 	#dh_auto_clean --buildsystem=python_distutils
 	$(MAKE) distclean
 	rm -f doc/*.pdf
-	# distutils.ccompiler leaves this behind
-	rm -f a.out
-	rm -rf tmp/
 
 
 override_dh_sphinxdoc:
@@ -52,25 +100,6 @@ 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
+.PHONY: override_dh_auto_build override_dh_auto_install 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