Skip to content

Commit

Permalink
Merge pull request #183 from xylar/add-netcdf-for-jigsaw-build
Browse files Browse the repository at this point in the history
Add `libnetcdf` to jigsaw build deps
  • Loading branch information
xylar authored Feb 1, 2024
2 parents 46d07f4 + e8ef714 commit 3ea88e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,13 @@ def build_conda_env(config, env_type, recreate, mpi, conda_mpi, version,
f'git submodule update --init jigsaw-python'
check_call(commands, logger=logger)

netcdf_c = config.get('deploy', 'netcdf_c')

print('Building JIGSAW\n')
# add build tools to deployment env, not compass env
# add build tools to deployment env, not polaris env
jigsaw_build_deps = f'cxx-compiler cmake libnetcdf={netcdf_c}'
commands = \
f'conda install -y cxx-compiler cmake && ' \
f'conda install -y {jigsaw_build_deps} && ' \
f'cd {source_path}/jigsaw-python && ' \
f'python setup.py build_external'
check_call(commands, logger=logger)
Expand Down

0 comments on commit 3ea88e7

Please sign in to comment.