I have a mypackage
wheel mypackage-py3.7-linux-x86_64
that installs into /usr/local/conda/lib/python3.7/site-packages/mypackage-py3.7-linux-x86_64.egg
and adds dependencies:
/usr/local/conda/lib/python3.7/site-packages/libdependencyroot.so
/usr/local/conda/lib/python3.7/site-packages/libdependencydeeper.so
My $LD_LIBRARY_PATH seems to contain everything one would ever need:
echo $LD_LIBRARY_PATH
>>> /usr/local/conda/lib:/usr/local/lib
And than when I try to use
python
import mypackage
...
>>> ImportError: libdependencyroot.so: cannot open shared object file: No such file or directory
If I copy lib files under /usr/local/conda/lib
or add /usr/local/conda/lib/python3.7/site-packages/
to LD_LIBRARY_PATH the problem disappears.
Let's say I can go and redesign the mypackage-py3.7-linux-x86_64.whl
. What should I do there to make my dependencies discoverable? I don't want to mess with LD_LIBRARY_PATH and I am not sure if it is a fair game for a whl to put things under /usr/local/conda/lib
.