Skip to content

Commit

Permalink
ECC-1793: develop binary wheel - change env var to ECCODES_PYTHON_USE…
Browse files Browse the repository at this point in the history
…_FINDLIBS
  • Loading branch information
iainrussell committed Aug 30, 2024
1 parent ab7f8dd commit afbb077
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@ jobs:
- run: pip install -r tests/requirements.txt
- run: pip freeze
- run: env | sort
- run: ECCODES_PYTHON_USE_SEPARATE_BINARIES=1 python -m eccodes selfcheck
- run: ECCODES_PYTHON_USE_FINDLIBS=1 python -m eccodes selfcheck

- run: pytest
if: matrix.method == 'conda' && matrix.platform == 'windows-latest'
env:
ECCODES_DEFINITION_PATH: 'C:/Miniconda/Library/share/eccodes/definitions'
ECCODES_SAMPLES_PATH: 'C:/Miniconda/Library/share/eccodes/samples'
ECCODES_PYTHON_USE_SEPARATE_BINARIES: '1'
ECCODES_PYTHON_USE_FINDLIBS: '1'

- run: pytest
if: matrix.method != 'conda' || matrix.platform != 'windows-latest'
env:
ECCODES_PYTHON_USE_SEPARATE_BINARIES: '1'
ECCODES_PYTHON_USE_FINDLIBS: '1'
# pytest -v --cov=. --cov-report=xml --cov-branch .

- name: Upload coverage to Codecov
Expand Down
2 changes: 1 addition & 1 deletion gribapi/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _lookup(name):
def find_binary_libs(name):

name = _lookup(name)
env_var = "ECCODES_PYTHON_USE_SEPARATE_BINARIES"
env_var = "ECCODES_PYTHON_USE_FINDLIBS"
if int(os.environ.get(env_var, "0")):
LOG.debug(f"{name} lib search: {env_var} set, so using findlibs")

Expand Down

0 comments on commit afbb077

Please sign in to comment.