[xdmf] 01/38: WIP: starting work on python3 support

Alastair McKinstry mckinstry at moszumanska.debian.org
Thu Apr 13 15:16:31 UTC 2017


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

mckinstry pushed a commit to branch debian/master
in repository xdmf.

commit 10eba73e55c8eb6a0eefd58ceb5bd4fe1a63d20d
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Sat Sep 12 08:01:42 2015 +0100

    WIP: starting work on python3 support
---
 debian/changelog |  6 ++++++
 debian/control   | 10 +++++++++-
 debian/rules     |  7 ++++---
 3 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2b941fa..f73466b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+xdmf (2.1.dfsg.1-13) UNRELEASED; urgency=medium
+
+  * Add python3 support
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Sat, 12 Sep 2015 07:59:45 +0100
+
 xdmf (2.1.dfsg.1-12) experimental; urgency=medium
 
   * Build against hdf5 for 1.8.15 transition 
diff --git a/debian/control b/debian/control
index 97e1b91..d537cfd 100644
--- a/debian/control
+++ b/debian/control
@@ -43,6 +43,14 @@ Description: eXtensible Data Model and Format development tools
 Package: python-xdmf
 Section: python
 Architecture: any
-Depends: libxdmf2  (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Depends: libxdmf2  (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} ${python2:Depends}
 Description: Python wrappers for the eXtensible Data Model and Format library
  This package provides python wrappers for the libXDMF library.
+
+Package: python3-xdmf
+Section: python
+Architecture: any
+Depends: libxdmf2  (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends}
+Description: Python3 wrappers for the eXtensible Data Model and Format library
+ This package provides python3 wrappers for the libXDMF library.
+
diff --git a/debian/rules b/debian/rules
index f733fb4..8967bb5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,13 +5,14 @@
 
 # The magic debhelper rule:
 %:
-	dh $@ --buildsystem cmake --with python2
+	dh $@ --buildsystem cmake --with python2,python3
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 TMPDIR=debian/tmp
 LIBDIR=usr/lib/${DEB_HOST_MULTIARCH}
-PYVER:=$(shell pyversions -r)
-PYTHON_LIB:=/usr/lib/${DEB_HOST_MULTIARCH)}/lib${PYVER}.so
+PY2VER:=$(shell pyversions -r)
+PY3VER:=$(shell py3versions -r)
+PYTHON_LIB:=/usr/lib/${DEB_HOST_MULTIARCH)}/lib${PY2VER}.so
 
 CXXFLAGS:= -I/usr/include/${PYVER} ${CXXFLAGS}
 

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



More information about the debian-science-commits mailing list