[med-svn] [jellyfish] 01/03: python binding fixups

Andreas Tille tille at debian.org
Tue Dec 29 21:11:08 UTC 2015


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

tille pushed a commit to branch master
in repository jellyfish.

commit b5f6d6e3c908e48170a587907c2b69585b5c289d
Author: Scott Kitterman <scott at kitterman.com>
Date:   Tue Dec 29 10:45:11 2015 -0500

    python binding fixups
---
 debian/changelog | 11 ++++++++++-
 debian/control   |  9 +++++----
 debian/rules     |  9 ++++++++-
 3 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1af4381..17e56d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,17 @@
 jellyfish (2.2.4-3) UNRELEASED; urgency=medium
 
+  [ Andreas Tille ]
   * Enable Python and Perl bindings
 
- -- Andreas Tille <tille at debian.org>  Mon, 28 Dec 2015 22:42:59 +0100
+  [ Scott Kitterman ]
+  * Rename python-jellyfish to python3-jellyfish
+  * Change python-dev build-dep to python3-all-dev (since this is a python3
+    extension)
+  * Add dh-python to build-depends
+  * Add building with python3
+  * Add call to setup.py in dh_autobuild override
+
+ -- Scott Kitterman <scott at kitterman.com>  Tue, 29 Dec 2015 10:43:40 -0500
 
 jellyfish (2.2.4-2) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 63e1bec..3c3d15f 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,8 @@ Build-Depends: debhelper (>= 9),
                procps,
                valgrind,
                swig,
-               python-dev
+               python3-all-dev,
+               dh-python
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/jellyfish.git
 Vcs-Git: git://anonscm.debian.org/debian-med/jellyfish.git
@@ -87,10 +88,10 @@ Description: count k-mers in DNA sequences (development files of jellyfish)
  This package contains the development files (static library and
  header files)
 
-Package: python-jellyfish
-Architecture: all
+Package: python3-jellyfish
+Architecture: any
 Section: python
-Depends: ${python:Depends},
+Depends: ${python3:Depends},
          ${misc:Depends}
 Description: count k-mers in DNA sequences (Python bindings of jellyfish)
  JELLYFISH is a tool for fast, memory-efficient counting of k-mers in
diff --git a/debian/rules b/debian/rules
index 1d1f78a..960a128 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,14 +1,21 @@
 #!/usr/bin/make -f
 
 DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+build3vers := $(shell py3versions -sv)
 
 export DH_OPTIONS
 
 %:
-	dh $@ --with autoreconf
+	dh $@ --with autoreconf,python3
 
 override_dh_install:
 	# dh_install -X*.a -X*.la -Xpkgconfig
+	dh_install -ppython3-jellyfish
+	set -e && for i in $(build3vers); do \
+	  cd swig/python \
+	  python$$i ./setup.py install --install-layout=deb --root ../../debian/python3-jellyfish; \
+	done
+
 	dh_install
 	d-shlibmove --commit \
 		    --multiarch \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/jellyfish.git



More information about the debian-med-commit mailing list