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


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

Re: pybuild renaming extensions breaks upstream code

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Dmitry Shachnev <mitya57@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pybuild renaming extensions breaks upstream code
Date Sun, 03 Jul 2016 08:30:01 +0200
Message-ID <rQJ4J-5jF-1@gated-at.bofh.it> (permalink)
References <rQCFX-1o7-1@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Jul 3 06:21:10 2016
Old-Return-Path <mitya57@gmail.com>
X-Amavis-Spam-Status No, score=-10.447 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MEDS2=2, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no
X-Policyd-Weight DYN_NJABL=ERR(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-lf0-f45.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Zuf7tqgzAAH2oCvQduGUBsXj8tDAKyp6rATE9kJrWiY=; b=CsMLY7nE7BBzvEl0i/M3mTmD7PFqhHeiyI0CLAFAAHGa9lHZ+PhWm83mGfbmwdHnaX Sa+q81CeuHropMCPXRXlFOHVuML3v7hXd7oefaKFNWtpe5QxcwEr1mUiQnCIqq7ecxyJ POf82/ybDKeKGIaWA7QMobrfUkODPe0fn6K6d+DA8G/DhSNy27UrmX++AutVzDvMwt4F iUq0HWMJmwficCvSpkiU4zFke02YkCYieYKR+zx8WKLpdQCRPNTjBlKSkJ9gn3lEDYNk KixyqBE1yqu1+Lf3RNKORYxYhVUjUZFtq0Lfua/+477RpCW06d4IN6PcJKg009rDFa/g c5cQ==
X-Gm-Message-State ALyK8tLZ+I3Sjk/evhxjnq7GxRAN4SPy7AT2ytuOAbDGqREhnmyC0TcFJUNnOpWXbpOIDQ==
X-Received by 10.25.19.95 with SMTP id j92mr1455518lfi.13.1467525789661; Sat, 02 Jul 2016 23:03:09 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="U+BazGySraz5kW0T"
Content-Disposition inline
User-Agent Mutt/1.6.0 (2016-04-01)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13962
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20160703060306.GB6128@mitya57.me
Approved robomod@news.nic.it
Lines 57
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 3 Jul 2016 09:03:06 +0300
X-Original-Message-ID <20160703060306.GB6128@mitya57.me>
X-Original-References <c472b966-1986-ac21-6b1d-e348d7b544fc@debian.org>
Xref csiph.com linux.debian.maint.python:8628

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Afif,

On Sat, Jul 02, 2016 at 04:20:11PM -0700, Afif Elghraoui wrote:
> Hello,
> I'm maintaining a set of python modules that have this pattern of code
> for finding compiled extensions (this example is from the kineticstools
> package):
>
> [...]
>
> When the package is built and the architecture is renamed:
>
> I: dh_python2 fs:322: renaming tree_predict.so to
> tree_predict.x86_64-linux-gnu.so
>
> the upstream code breaks. What I've done in the past is patch it so that
> it searches for the extension the way we rename it (which I get using
> sysconfig.get_config_var('MULTIARCH')) as in the patch at
>
> http://anonscm.debian.org/git/debian-med/pbh5tools.git/tree/debian/patches/multiarch-module-path.patch
>
> Is there a better way around this problem?

If it is not a Python extension but rather a generic plugin, you can tell
dh_python2 not to touch it (i.e. via the -X flag), or better install it to
some private directory different from dist-packages.

--
Dmitry Shachnev

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


Thread

pybuild renaming extensions breaks upstream code Afif Elghraoui <afif@debian.org> - 2016-07-03 01:40 +0200
  Re: pybuild renaming extensions breaks upstream code Dmitry Shachnev <mitya57@debian.org> - 2016-07-03 08:30 +0200
    Re: pybuild renaming extensions breaks upstream code Afif Elghraoui <afif@ghraoui.name> - 2016-07-03 12:00 +0200
      Re: pybuild renaming extensions breaks upstream code Dmitry Shachnev <mitya57@debian.org> - 2016-07-04 17:30 +0200

csiph-web