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


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

Re: No clue yet for building snakemake since there are two dirs in .pybuild

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Piotr Ożarowski <piotr@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: No clue yet for building snakemake since there are two dirs in .pybuild
Date Wed, 27 Jun 2018 14:40:01 +0200
Message-ID <w5hTP-5Il-1@gated-at.bofh.it> (permalink)
References <w4SVr-7ns-1@gated-at.bofh.it> <w4YHv-2wC-3@gated-at.bofh.it> <w5eCC-3Sb-9@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Jun 27 12:33:33 2018
Old-Return-Path <piotr@ozarowski.pl>
X-Amavis-Spam-Status No, score=-6.65 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.1
Mail-Followup-To debian-python@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent NeoMutt/20180223
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16069
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20180627123312.dzad7rie6c7axhcu@sar0.p1otr.com
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 27 Jun 2018 14:33:12 +0200
X-Original-Message-ID <20180627123312.dzad7rie6c7axhcu@sar0.p1otr.com>
X-Original-References <20180626095124.2asvsuaoq6bilru5@an3as.eu> <pgto4t$cde$1@blaine.gmane.org> <20180627090506.c5r44vza4twctzfo@sar0.p1otr.com>
Xref csiph.com linux.debian.maint.python:10660

Show key headers only | View raw


[Piotr Ożarowski, 2018-06-27]
> [Stuart Prescott, 2018-06-26]
> > > # ls -l /build/snakemake-5.1.5/.pybuild
> > > total 8
> > > drwxr-xr-x 3 pbuilder pbuilder 4096 Jun 26 09:20 cpython3_3.6
> > > drwxr-xr-x 3 pbuilder pbuilder 4096 Jun 26 09:20 cpython3_3.6_snakemake
> > > 
> > > and the latter contains all the installed files while the former is
> > > empty.  How can I prevent this?
> > 
> > Deleting PYBUILD_NAME from your debian/rules is sufficient to fix that. When 
> > set, that sets HOME to the above directory and the build system for some 
> > reason starts using that. 
> > 
> > And no, I can't explain why that is...
> 
> "cpython3_3.6" is used if --name / PYBUILD_NAME is not defined. Name is
> added to it to support building multiple modules/extensions at the same
> time. If snakemake doesn't invoke pybuild twice (with and without
> --name) then existence of cpython3_3.6 (without "_snakemake") is a bug
> somewhere in pybuild

FTR: not a bug in pybuild, in line 11 you have:

  export PATH:=$(shell pybuild --print build_dir --interpreter python3)/bin:$(PATH)

and export/pybuild doesn't know about PYBUILD_NAME yet (it's how Makefile works),
you need to add "--name $(PYBUILD_NAME)", like this:

  export PATH:=$(shell pybuild --print build_dir --interpreter python3 --name $(PYBUILD_NAME))/bin:$(PATH)
-- 
GPG: 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

Bug#894213: No clue yet for building snakemake since there are two dirs in .pybuild Andreas Tille <andreas@an3as.eu> - 2018-06-26 12:00 +0200
  Re: No clue yet for building snakemake since there are two dirs in .pybuild Stuart Prescott <stuart@debian.org> - 2018-06-26 18:10 +0200
    Re: No clue yet for building snakemake since there are two dirs in  .pybuild Piotr Ożarowski <piotr@debian.org> - 2018-06-27 11:10 +0200
      Re: No clue yet for building snakemake since there are two dirs in  .pybuild Piotr Ożarowski <piotr@debian.org> - 2018-06-27 14:40 +0200

csiph-web