From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iT8KZ-0004lu-8h for ptxdist@pengutronix.de; Fri, 08 Nov 2019 18:45:55 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iT8KZ-0007RG-0X for ptxdist@pengutronix.de; Fri, 08 Nov 2019 18:45:55 +0100 Date: Fri, 8 Nov 2019 18:45:54 +0100 From: Michael Olbrich Message-ID: <20191108174554.aeqmq6og5doibrmo@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de 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