ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / shapely / library-paths.patch
blobd095eada9d6e139353e104592d382e061d5f5870
1 diff --git a/shapely/geos.py b/shapely/geos.py
2 index 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@',
11 _lgeos = load_dll('geos_c', fallbacks=alt_paths)
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@",
19 _lgeos = load_dll('geos_c', fallbacks=alt_paths)
21 diff --git a/tests/test_dlls.py b/tests/test_dlls.py
22 index 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@'])