Skip to content

Commit

Permalink
ECC-1793: develop binary wheel - do not use ecmwflibs
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell committed Aug 8, 2024
1 parent bc3bebe commit 8a9775d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions gribapi/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ def _lookup(name):
return _MAP.get(name, name)


def get_findlibs(name):
try:
import ecmwflibs as findlibs

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

LOG.debug(f"{name} lib search: ecmwflibs package not installed, using findlibs")
return findlibs


def find_binary_libs(name):

name = _lookup(name)
Expand Down Expand Up @@ -105,7 +93,8 @@ def find_binary_libs(name):
)

# if did not find the binary wheel, or the env var is set, fall back to findlibs
findlibs = get_findlibs(name)
import findlibs

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

0 comments on commit 8a9775d

Please sign in to comment.