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


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

Re: pybuild renaming extensions breaks upstream code

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Afif Elghraoui <afif@ghraoui.name>
Newsgroups linux.debian.maint.python
Subject Re: pybuild renaming extensions breaks upstream code
Date Sun, 03 Jul 2016 12:00:01 +0200
Message-ID <rQMlX-773-3@gated-at.bofh.it> (permalink)
References <rQCFX-1o7-1@gated-at.bofh.it> <rQJ4J-5jF-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 09:54:09 2016
Old-Return-Path <afif@ghraoui.name>
X-Amavis-Spam-Status No, score=-11.18 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .ghraoui. - helo: .relay3-d.mail.gandi. - helo-domain: .gandi.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7
X-Enigmail-Draft-Status N1110
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dNkeEM3UWx3LSgaF7GK8VmCUmBaJ5PFMt"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13963
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/89a6acfa-3afd-d8b9-0e59-dea94551b804@ghraoui.name
Approved robomod@news.nic.it
Lines 70
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 3 Jul 2016 02:37:41 -0700
X-Original-Message-ID <89a6acfa-3afd-d8b9-0e59-dea94551b804@ghraoui.name>
X-Original-References <c472b966-1986-ac21-6b1d-e348d7b544fc@debian.org> <20160703060306.GB6128@mitya57.me>
Xref csiph.com linux.debian.maint.python:8629

Show key headers only | View raw


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

Hi, Dmitry,

Thanks for your reply

على السبت  2 تـمـوز 2016 ‫23:03، كتب Dmitry Shachnev:
>> 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.

It's a Python extension as far as I know. After investigating this a bit
more, it seems that numpy's ctypeslib.load_library function can guess
the library's extension. So for the unit test (before dh-python has
renamed anything and the library is still librarybasename.so), it can
guess properly if it's called as

numpy.ctypeslib.load_library("librarybasename","/path/to/library/")

but this won't work afterwards. I instead get

    File "/usr/lib/python2.7/dist-packages/numpy/ctypeslib.py", line
163, in load_library
      raise OSError("no file with expected extension")
  OSError: no file with expected extension

Would it be a good idea to patch numpy to also look for multiarch
strings in the suffix?

Many thanks and regards
Afif

-- 
Afif Elghraoui | عفيف الغراوي
http://afif.ghraoui.name

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