Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8683

Re: How to use pybuild without proper build system

Path csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Piotr Ożarowski <piotr@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: How to use pybuild without proper build system
Date Tue, 26 Jul 2016 16:50:01 +0200
Message-ID <rZbQd-39o-17@gated-at.bofh.it> (permalink)
References <rZbnc-2Yp-7@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Jul 26 14:40:44 2016
Old-Return-Path <piotr@ozarowski.pl>
X-Amavis-Spam-Status No, score=-3.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MEDS2=2] autolearn=no autolearn_force=no
X-Policyd-Weight DYN_NJABL=ERR(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=ERR(-1.5) CL_IP_EQ_FROM_MX=-3.1; rate: -6.1
Mail-Followup-To debian-python@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
X-Operating-System Debian GNU/Linux (4.5.0-0.bpo.2-amd64)
User-Agent Mutt/1.5.23 (2014-03-12)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/14022
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20160726143955.GI13263@sar0.p1otr.com
Approved robomod@news.nic.it
Lines 54
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 26 Jul 2016 16:39:55 +0200
X-Original-Message-ID <20160726143955.GI13263@sar0.p1otr.com>
X-Original-References <20160726141244.GC16354@an3as.eu>
Xref csiph.com linux.debian.maint.python:8683

Show key headers only | View raw


[Andreas Tille, 2016-07-26]
> [1] https://anonscm.debian.org/git/debian-med/python-lefse.git

dh_install is my first suggestion. If you need to build extensions for
all supported Python versions, take a look at pybuild's --system=custom¹.

In case of lefse, I'd simply:


diff --git a/debian/control b/debian/control
index e35bbf2..7018c0f 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-lefse.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/python-lefse.git
 Homepage: https://bitbucket.org/nsegata/lefse
 
-Package: python-lefse
+Package: lefse
 Architecture: all
 Depends: ${python:Depends},
          ${misc:Depends},
diff --git a/debian/rules b/debian/rules
index 10f28a4..a7c2af5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,16 @@
 #!/usr/bin/make -f
 
 # DH_VERBOSE := 1
-
-export PYBUILD_NAME=lefse
+DESTDIR=debian/lefse/usr/share/lefse
 
 %:
-	dh $@  --with python2 --buildsystem=pybuild
+	dh $@  --with python2
+
+override_dh_auto_install:
+	mkdir -p $(DESTDIR)
+	cp -r lefsebiom $(DESTDIR)/
+	for i in format_input lefse2circlader plot_cladogram plot_features plot_res qiime2lefse run_lefse;\
+       	do\
+		cp $$i.py $(DESTDIR)/$$i;\
+		dh_link /usr/share/lefse/$$i /usr/bin/$$i;\
+	done


[¹] see manpage or search for "export PYBUILD_SYSTEM=custom" on
    https://wiki.debian.org/Python/Pybuild
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to use pybuild without proper build system Andreas Tille <andreas@an3as.eu> - 2016-07-26 16:20 +0200
  Re: How to use pybuild without proper build system Piotr Ożarowski <piotr@debian.org> - 2016-07-26 16:50 +0200

csiph-web