Load dynamic library for python library

Joshua Root jmr at macports.org
Fri Feb 8 02:03:33 UTC 2019


On 2019-2-8 13:00 , Joshua Root wrote:
> On 2019-2-8 02:00 , Casey Deccio wrote:
>> The reason I'm asking on the dev list is because I'm updating a port which relies on py27-libnacl and libsodium, and I'm trying to figure out the right way to get it to work, e.g., if any special configuration is needed.  I would have thought that it should "just work", but since it doesn't, I'm seeking some guidance as to how I should update that port appropriately.
> 
> Ctypes uses dlopen behind the scenes, and if you look at dlopen's man
> page, it only searches a small set of fallback paths when the full path
> to the library is not supplied, most of which are controlled by
> environment variables. So I would say that py-libnacl should be passing
> the full path to libnacl to ctypes.cdll.LoadLibrary.

BTW Gmail decided my reply was spam; sending only to the list this time
so Casey might actually see it...


More information about the macports-dev mailing list