at 23.05-pre 1.1 kB view raw
1diff --git a/shapely/geos.py b/shapely/geos.py 2index 88c5f53..1ccd6e4 100644 3--- a/shapely/geos.py 4+++ b/shapely/geos.py 5@@ -96,6 +96,7 @@ if sys.platform.startswith('linux'): 6 alt_paths = [ 7 'libgeos_c.so.1', 8 'libgeos_c.so', 9+ '@libgeos_c@', 10 ] 11 _lgeos = load_dll('geos_c', fallbacks=alt_paths) 12 13@@ -160,6 +161,7 @@ elif sys.platform == 'darwin': 14 "/usr/local/lib/libgeos_c.dylib", 15 # homebrew Apple Silicon 16 "/opt/homebrew/lib/libgeos_c.dylib", 17+ "@libgeos_c@", 18 ] 19 _lgeos = load_dll('geos_c', fallbacks=alt_paths) 20 21diff --git a/tests/test_dlls.py b/tests/test_dlls.py 22index c71da8e..c36262c 100644 23--- a/tests/test_dlls.py 24+++ b/tests/test_dlls.py 25@@ -18,4 +18,5 @@ class LoadingTestCase(unittest.TestCase): 26 '/opt/homebrew/lib/libgeos_c.dylib', # homebrew (macOS) 27 os.path.join(sys.prefix, "lib", "libgeos_c.so"), # anaconda (Linux) 28 'libgeos_c.so.1', 29- 'libgeos_c.so']) 30+ 'libgeos_c.so', 31+ '@libgeos_c@'])