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


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

pybuild: how to get the build directory name

Path csiph.com!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Ole Streicher <olebole@debian.org>
Newsgroups linux.debian.maint.python
Subject pybuild: how to get the build directory name
Date Tue, 20 Mar 2018 22:40:01 +0100
Message-ID <vvx97-1hA-15@gated-at.bofh.it> (permalink)
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Mar 20 21:30:46 2018
Old-Return-Path <news@liska.ath.cx>
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 using cached result; rate: -7
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version 1.0
Content-Type text/plain
Lines 22
X-Mailing-List <debian-python@lists.debian.org> archive/latest/15682
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/87h8pazbxd.fsf@debian.org
Approved robomod@news.nic.it
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 20 Mar 2018 22:15:10 +0100
X-Original-Message-ID <87h8pazbxd.fsf@debian.org>
Xref csiph.com linux.debian.maint.python:10284

Show key headers only | View raw


Hi,

one of my Python packages has a test script under debian/tests that I
want to run at build time. The problem is now how to get the name of the
actual build directory, which is needed to be put into the PYTHONPATH:

Up to now, I did the following in debian/rules:

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.

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

Best regards

Ole

Back to linux.debian.maint.python | Previous | Next — 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