* [ptxdist] how to integrate python modules using find_library
@ 2019-11-05 17:11 Guillermo Rodriguez Garcia
2019-11-08 17:45 ` Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Guillermo Rodriguez Garcia @ 2019-11-05 17:11 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 679 bytes --]
Hi all,
Some python packages (e.g. soundfile) rely on find_library (from
ctypes.util) to resolve the name of a dynamic library at runtime in a
platform-independent way.
On Linux, the implementation of find_library [1] requires one of the
following:
- ldconfig
- gcc + objdump
- ld + objdump
Neither of the above make much sense on an embedded target. Does anyone
have advice or recommendations on how to deal with such packages, short of
just patching the sources to avoid the use of find_library?
[1]:
https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Lib/ctypes/util.py#L309
Thanks,
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com
[-- Attachment #1.2: Type: text/html, Size: 1117 bytes --]
[-- Attachment #2: Type: text/plain, Size: 92 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] how to integrate python modules using find_library
2019-11-05 17:11 [ptxdist] how to integrate python modules using find_library Guillermo Rodriguez Garcia
@ 2019-11-08 17:45 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2019-11-08 17:45 UTC (permalink / raw)
To: ptxdist
On Tue, Nov 05, 2019 at 06:11:27PM +0100, Guillermo Rodriguez Garcia wrote:
> Some python packages (e.g. soundfile) rely on find_library (from
> ctypes.util) to resolve the name of a dynamic library at runtime in a
> platform-independent way.
>
> On Linux, the implementation of find_library [1] requires one of the
> following:
> - ldconfig
> - gcc + objdump
> - ld + objdump
>
> Neither of the above make much sense on an embedded target. Does anyone
> have advice or recommendations on how to deal with such packages, short of
> just patching the sources to avoid the use of find_library?
>
> [1]:
> https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Lib/ctypes/util.py#L309
Well, ldconfig should be useable. PTXdist optionally installs it to
generate the ld.so.cache, but it's quite large because it must be
statically linked.
I've no idea what else to use.
Michael
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-08 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 17:11 [ptxdist] how to integrate python modules using find_library Guillermo Rodriguez Garcia
2019-11-08 17:45 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox