Skip to content

Commit

Permalink
ECC-1793: develop binary wheel - allow to use ecmwflibs
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell committed Apr 19, 2024
1 parent 91688d4 commit 06125b8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gribapi/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ def find_binary_libs(name):
logging.debug(
f"{name} lib search: ECCODES_PYTHON_USE_INSTALLED_BINARIES set, so using findlibs"
)
import findlibs
try:
import ecmwflibs as findlibs

logging.debug(f"{name} lib search: using ecmwflibs")
except ImportError:
import findlibs

logging.debug(f"{name} lib search: no ecmwflibs, using findlibs")

foundlib = findlibs.find(name)
logging.debug(f"{name} lib search: findlibs returned {foundlib}")
Expand Down

0 comments on commit 06125b8

Please sign in to comment.