openzim / python-libzim

Libzim binding for Python: read/write ZIM files in Python
https://pypi.org/project/libzim/
GNU General Public License v3.0
62 stars 20 forks source link

Rewrite runtime path lookup to libzim on macOS #63

Closed rgaudin closed 4 years ago

rgaudin commented 4 years ago

Using the 0.0.3 release, I realized we have a packaging problem on macOS: the wrapper is looking for the libzim in standard location, which is good for those who have the libzim installed but not the expected behavior (that's why we bundle it!)

So this PR fixes that by telling the wrapper to look for the libzim next to it. The $ORIGIN rpath was already set for linux but macOS behaves differently (equivalent is @loader_path/)

Changes:

This has been tested on macOS and Linux via test.pypi.org