Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8629
| From | Afif Elghraoui <afif@ghraoui.name> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: pybuild renaming extensions breaks upstream code |
| Date | 2016-07-03 12:00 +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> |
| Organization | linux.* mail to news gateway |
[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
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