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


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

Re: pybuild: how to get the build directory name

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Piotr Ożarowski <piotr@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pybuild: how to get the build directory name
Date Tue, 20 Mar 2018 23:10:02 +0100
Message-ID <vvxCa-1Ii-9@gated-at.bofh.it> (permalink)
References <vvx97-1hA-15@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Mar 20 22:02:16 2018
Old-Return-Path <piotr@ozarowski.pl>
X-Amavis-Spam-Status No, score=-6.651 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no
X-Policyd-Weight DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=SKIP(-1.5) CL_IP_EQ_FROM_MX=-3.1; rate: -6.1
Mail-Followup-To debian-python@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Operating-System Debian GNU/Linux (4.15.0-1-amd64)
User-Agent NeoMutt/20180223
X-Mailing-List <debian-python@lists.debian.org> archive/latest/15683
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20180320220149.b6fned6ddbrpdwie@sar0.p1otr.com
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 20 Mar 2018 23:01:49 +0100
X-Original-Message-ID <20180320220149.b6fned6ddbrpdwie@sar0.p1otr.com>
X-Original-References <87h8pazbxd.fsf@debian.org>
Xref csiph.com linux.debian.maint.python:10285

Show key headers only | View raw


[Ole Streicher, 2018-03-20]
> test-python%:
>         HOME=/tmp/ PYTHONPATH=$(CURDIR)/.pybuild/pythonX.Y_$*/build python$* debian/tests/pyraf-test.py
> 
> override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
> 
> This however does not work anymore, since the subdir under .pybuild is
> now changed to cpython2_2.7_pyraf resp. cpython3_3.6_pyraf.

`pybuild --print build_dir --interpreter python3` or:

`pybuild --print '{build_dir}' --pyver 2.7`
`pybuild --print '{build_dir}' --pyver 3.6`

> To be backward compatible, I would however not like to just follow this
> change. How can I get the correct build dir here?

or even better (without using pybuild's internal paths):

  override_dh_auto_test:
  	dh_auto_test -- --system=custom --test-args '{interpreter} {dir}/debian/tests/pyraf-test.py'

-- 
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

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


Thread

pybuild: how to get the build directory name Ole Streicher <olebole@debian.org> - 2018-03-20 22:40 +0100
  Re: pybuild: how to get the build directory name Piotr Ożarowski <piotr@debian.org> - 2018-03-20 23:10 +0100
    Re: pybuild: how to get the build directory name Ole Streicher <olebole@debian.org> - 2018-03-21 20:50 +0100

csiph-web