Skip to content

Commit

Permalink
Auditwheel changed, look for so in Shapely.libs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillies committed Aug 20, 2020
1 parent edcb12a commit a992eea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shapely/geos.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@ def load_dll(libname, fallbacks=None, mode=DEFAULT_MODE):
if sys.platform.startswith('linux'):
# Test to see if we have a wheel repaired by 'auditwheel' containing its
# own libgeos_c
geos_whl_so = glob.glob(os.path.abspath(os.path.join(os.path.dirname(
__file__), '.libs/libgeos_c-*.so.*')))
geos_whl_so = glob.glob(
os.path.abspath(
os.path.join(
"..", os.path.dirname(__file__), "Shapely.libs/libgeos_c-*.so.*"
)
)
)
if len(geos_whl_so) == 1:
_lgeos = CDLL(geos_whl_so[0])
LOG.debug("Found GEOS DLL: %r, using it.", _lgeos)
Expand Down

0 comments on commit a992eea

Please sign in to comment.