Re: Load dynamic library for python library

2019-02-08 Thread Casey Deccio
> On Feb 8, 2019, at 4:05 PM, Joshua Root wrote: > > > I already committed the change. Whoops - I see that now. Thanks! > No fallback because we only want to use > the MacPorts version of libsodium. There's a dependency on it, so if > it's missing something has gone very wrong. Indeed. Th

Re: Load dynamic library for python library

2019-02-08 Thread Casey Deccio
> On Feb 8, 2019, at 4:05 PM, Joshua Root wrote: > > > I already committed the change. Whoops - I see that now. Thanks! > No fallback because we only want to use > the MacPorts version of libsodium. There's a dependency on it, so if > it's missing something has gone very wrong. Indeed. Th

Re: Load dynamic library for python library

2019-02-08 Thread Casey Deccio
> On Feb 7, 2019, at 8:05 PM, Joshua Root <mailto:j...@macports.org>> wrote: > > On 2019-2-8 13:59 , Casey Deccio wrote: >> >> >>> On Feb 7, 2019, at 7:03 PM, Joshua Root >> <mailto:j...@macports.org>> wrote: >>> >>>

Re: Load dynamic library for python library

2019-02-07 Thread Casey Deccio
> On Feb 7, 2019, at 7:03 PM, Joshua Root wrote: > > BTW Gmail decided my reply was spam; sending only to the list this time > so Casey might actually see it... Much appreciated :) > On 2019-2-8 13:00 , Joshua Root wrote: >> >> Ctypes uses dlopen behind the scenes, and if you look at dlopen

Load dynamic library for python library

2019-02-07 Thread Casey Deccio
Hi, I've installed a python package (py27-libnacl) that loads a dynamic library (libsodium), but I can't access that library unless I explicitly set LD_LIBRARY_PATH: $ python -m libnacl Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/p