Path: csiph.com!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: Enabling Python bindings for jellyfish Date: Tue, 29 Dec 2015 18:00:02 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Dec 29 16:52:14 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-4.08 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, LDO_WHITELIST=-5, MEDS2=2, MURPHY_DRUGS_REL8=0.02] autolearn=no autolearn_force=no X-Policyd-Weight: DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .kitterman. - helo: .mailout03.controlledmail. - helo-domain: .controlledmail.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -5 Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kitterman.com; s=201409; t=1451407916; bh=cpEhR1IE+Ot24EuW5eg/CbmB1UlAJFjj/4JbLjhJTQ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EFJESM4J4CujMaMzOQ4dVvZQmjg9L+cyAKeD8uFbn5k7AlMbVXwbKB2km+FM2zQFo qwWgkVdXnsDcd/j0yFIFr3SfuobdLKjmB1hTZqUiuVTh/2hZv+6pXpJ336cKy58+to WrBkUpYhVKTKRxf1v2MKwL5yA5QfXATP6EEKHWjM= User-Agent: KMail/4.13.3 (Linux/3.13.0-71-generic; KDE/4.13.3; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart5078121.apAhCZbYo3" Content-Transfer-Encoding: 7Bit X-Mailing-List: archive/latest/13332 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/2736617.CPfHFV0Zug@kitterma-e6430 Approved: robomod@news.nic.it Lines: 134 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 29 Dec 2015 11:52:07 -0500 X-Original-Message-ID: <2736617.CPfHFV0Zug@kitterma-e6430> X-Original-References: <20151228233014.GE2138@an3as.eu> Xref: csiph.com linux.debian.maint.python:8014 This is a multi-part message in MIME format. --nextPart5078121.apAhCZbYo3 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Tuesday, December 29, 2015 12:30:14 AM Andreas Tille wrote: > Hi, > > I realised that for jellyfish[1] Python bindings can be activated. I > tried to do so and configuring and building works fine - but I have no > idea how to sensibly install the files into the python-jellyfish > package. Any idea how to call swig/python/setup.py or do something else > to install the files into the right location. > > Any help? > > Kind regards > > Andreas. > > [1] git://anonscm.debian.org/debian-med/jellyfish.git I haven't been able to actually test this since when I try to build it, I get this error: jellyfish_wrap.cxx:3104:33: fatal error: jellyfish/mer_dna.hpp: No such file or directory I think it should ~work. Note that these bindings are for python3, not python. I've adjusted things accordingly. The configure changes I made (so that configure wouldn't fail) mean perl bindings don't get built either. I didn't check if that was working before. Scott K --nextPart5078121.apAhCZbYo3 Content-Disposition: attachment; filename="0001-python-binding-fixups.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-python-binding-fixups.patch" >From 72a9b63d0d8bf4d64614966aed79025c7c7d0fdf Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Tue, 29 Dec 2015 10:45:11 -0500 Subject: [PATCH] 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 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 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 \ -- 1.9.1 --nextPart5078121.apAhCZbYo3--