From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iS2Mm-0007ne-Vf for ptxdist@pengutronix.de; Tue, 05 Nov 2019 18:11:41 +0100 Received: by mail-ed1-x52b.google.com with SMTP id s10so1809597edi.5 for ; Tue, 05 Nov 2019 09:11:40 -0800 (PST) MIME-Version: 1.0 From: Guillermo Rodriguez Garcia Date: Tue, 5 Nov 2019 18:11:27 +0100 Message-ID: Subject: [ptxdist] how to integrate python modules using find_library List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0192678943==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============0192678943== Content-Type: multipart/alternative; boundary="0000000000008c4f8305969c86d4" --0000000000008c4f8305969c86d4 Content-Type: text/plain; charset="UTF-8" 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 --0000000000008c4f8305969c86d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

Some python pa= ckages (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:
=C2=A0- ldconfig
=C2=A0- gcc=C2=A0+ obj= dump
=C2=A0- ld=C2=A0+ objdump

Neither o= f the above make much sense on an embedded target. Does anyone have advice = or recommendations=C2=A0on how to deal with such packages, short of just pa= tching the sources to avoid the use of find_library?

=C2=A0[1]:=C2=A0https://github.= com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Lib/ctypes= /util.py#L309

Thanks,

Guillermo Rodriguez Garcia
guille.rodriguez= @gmail.com
--0000000000008c4f8305969c86d4-- --===============0192678943== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de --===============0192678943==--