Closed HenrikBengtsson closed 6 years ago
setup.py
only looks for parasail/libparasail.so
. I don't support the case where parasail was installed separately. My reasoning at the time was:
The wheel that is built by setup.py bundles the library inside the wheel next to the __init__.py
file. The import of parasail (in __init__.py
) then looks in the __file__
path for the library. I did it that way to avoid (3) above, so that users always get a working parasail-python. I would like to keep this as the default, but I'm willing to add perhaps an option (via env var perhaps?) that could override the location or symlink it or ... I'm open to suggestions.
Background: I came to this from getting SSL: CERTIFICATE_VERIFY_FAILED
due to an old Python 2.7.9 installation (https://github.com/jeffdaily/parasail-python/issues/25#issuecomment-419177581). I solved that one by disabling SSL cert validation temporarily. It also install fine when using Python 2.7.15. However, before those to solutions, I attempted with a standalone installation of the parasail library - hence this question.
I don't have any strong feeling about supporting libparasail.*
on LD_LIBRARY_PATH
, but I might not be the only one that would expect it to possible work. An env var (during installation) for supporting libparasail.*
on LD_LIBRARY_PATH
would be handy. OTH, I think your original arguments for now supporting are also valid.
Feel free to label 'wontfix' and close.
Just pushed a new release to address this issue. Please try it out and let me know how it works for you.
Set the env var PARASAIL_SKIP_BUILD
to avoid downloading and building the C library. The library loading at runtime will search in the package location first (original behavior, but the library will no longer exist), followed by a direct ctypes.CDLL(libname)
that should search system locations, followed by searching paths in environment including PARASAIL_LIBPATH, LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, and PATH.
Set PARASAIL_VERBOSE=1 env var to see the progress of the library searching.
I've installed the parasail library separately such that I have
libparasail.so
on theLD_LIBRARY_PATH
:However, whenever I attempt to install the
parasail
Python package, it does not find it. Instead it attempts to download it;Is this expected/not supported?
This is on:
(Yes, it's old, but I don't this that's related to the problem)