Skip to content

Commit 3b7581e

Browse files
corentincartonfigi44
authored andcommitted
trying to use findlibs to find ecflow libraries and python bindings
1 parent 8ebf93a commit 3b7581e

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ dependencies:
1111
- requests
1212
- pytest
1313
- pygraphviz
14+
- pip:
15+
- findlibs
1416

1517
variables:
1618
QT_MAC_WANTS_LAYER: 1

pyflow/importer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import os
22
import sys
33

4+
5+
try:
6+
import ecmwflibs as findlibs
7+
except ImportError:
8+
import findlibs
9+
10+
library_path = findlibs.find("eccodes")
11+
412
try:
513
import ecflow
614
except ImportError:

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ jinja2
22
requests
33
pytest
44
graphviz
5+
findlibs

0 commit comments

Comments
 (0)