Blob Blame History Raw
--- eccodes-1.6.0.p1p2/gribapi/bindings.py	2023-07-29 17:23:48.094676200 +0200
+++ eccodes-1.6.0.p1p2p3/gribapi/bindings.py	2023-07-29 17:24:14.037086285 +0200
@@ -25,14 +25,18 @@ __version__ = "1.6.0"
 
 LOG = logging.getLogger(__name__)
 
-try:
-    import ecmwflibs as findlibs
-except ImportError:
-    import findlibs
+#try:
+#    import ecmwflibs as findlibs
+#except ImportError:
+#    import findlibs
+#
+#library_path = findlibs.find("eccodes")
+#if library_path is None:
+#    raise RuntimeError("Cannot find the ecCodes library")
 
-library_path = findlibs.find("eccodes")
-if library_path is None:
-    raise RuntimeError("Cannot find the ecCodes library")
+import os
+import sys
+library_path = os.path.join(sys.prefix, sys.platlibdir, 'libeccodes.so')
 
 # default encoding for ecCodes strings
 ENC = "ascii"
--- eccodes-1.6.0.p1p2/setup.py	2023-07-29 17:23:48.130675382 +0200
+++ eccodes-1.6.0.p1p2p3/setup.py	2023-07-29 17:24:14.039086239 +0200
@@ -44,7 +44,7 @@ elif sys.version_info < (3, 8):
 elif sys.version_info < (3, 9):
     install_requires = ["numpy<1.25"]
 
-install_requires += ["attrs", "cffi", "findlibs"]
+install_requires += ["attrs", "cffi"] #, "findlibs"]
 
 setuptools.setup(
     name="eccodes",
--- eccodes-1.6.0.p1p2/eccodes.egg-info/requires.txt	2023-07-29 17:23:48.094676200 +0200
+++ eccodes-1.6.0.p1p2p3/eccodes.egg-info/requires.txt	2023-07-29 17:24:14.036086308 +0200
@@ -1,4 +1,3 @@
 numpy
 attrs
 cffi
-findlibs