diff options
author | Robert Schütz <rschuetz17@gmail.com> | 2019-03-14 10:28:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 10:28:43 +0100 |
commit | 5ee01252681cc39843967bddc5267b890de892db (patch) | |
tree | a7b0f278e1dc1dfd93307f93ed2fcdb441f6b23b /pkgs/development/python-modules | |
parent | 47304663666056fb3a01ee6e9a9c3ee476a928e1 (diff) |
python.pkgs.shapely: fix tests on Darwin (#57630)
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/shapely/library-paths.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/shapely/library-paths.patch b/pkgs/development/python-modules/shapely/library-paths.patch index 6137e7581821e..f75ad7a9486eb 100644 --- a/pkgs/development/python-modules/shapely/library-paths.patch +++ b/pkgs/development/python-modules/shapely/library-paths.patch @@ -107,3 +107,21 @@ index 09bf1ab..837aa98 100644 def _geos_version(): +diff --git a/tests/test_dlls.py b/tests/test_dlls.py +index 35f9cc2..3dfcaac 100644 +--- a/tests/test_dlls.py ++++ b/tests/test_dlls.py +@@ -12,12 +12,7 @@ class LoadingTestCase(unittest.TestCase): + @unittest.skipIf(sys.platform == "win32", "FIXME: adapt test for win32") + def test_fallbacks(self): + load_dll('geos_c', fallbacks=[ +- os.path.join(sys.prefix, "lib", "libgeos_c.dylib"), # anaconda (Mac OS X) +- '/opt/local/lib/libgeos_c.dylib', # MacPorts +- '/usr/local/lib/libgeos_c.dylib', # homebrew (Mac OS X) +- os.path.join(sys.prefix, "lib", "libgeos_c.so"), # anaconda (Linux) +- 'libgeos_c.so.1', +- 'libgeos_c.so']) ++ '@libgeos_c@']) + + + def test_suite(): |