Skip to content

Commit

Permalink
Merge pull request #153 from eWaterCycle/fix-wflowjl-environment
Browse files Browse the repository at this point in the history
Wflow.jl fix: pin packages depending on netcdf/h5 binaries
  • Loading branch information
sverhoeven authored Nov 5, 2023
2 parents 9ed8852 + d520e47 commit 8d65b35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/ewatercycle/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Location where conda is installed
conda_root: /opt/conda
# Name of conda environment to use
conda_environment: ewatercycle
conda_environment: ewatercycle2
# Path to conda environments bin directory
conda_environment_bin: '{{ conda_root }}/envs/{{ conda_environment }}/bin'
# Where all shared data is available
Expand Down
5 changes: 4 additions & 1 deletion roles/ewatercycle/templates/environment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ channels:
dependencies:
# TODO pin versions for reproducibility. Use `conda env export` and `pip list` to get versions
- python=3.10
- esmpy==8.3.1 # For juliacall compatibility
- fiona==1.9.1 # For juliacall compatibility
- netcdf4==1.6.2 # For juliacall compatibility
- esmvaltool-python>=2.3.0
- ansible
- pip:
Expand All @@ -24,7 +27,7 @@ dependencies:
# For using ewatercycle-wflowjl
# pyjuliapkg fork that accepts ~
- git+https://github.com/eWaterCycle/pyjuliapkg@expanduser
- juliacall
- juliacall==0.9.14
- setuptools
- altair_saver
- altair
Expand Down
2 changes: 1 addition & 1 deletion roles/jupyter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jupyterhub_spawner_environment:
# Location where conda is installed
conda_root: /opt/conda
# Name of conda environment to use
conda_environment: ewatercycle
conda_environment: ewatercycle2
# Path to conda environments bin directory
conda_environment_bin: '{{ conda_root }}/envs/{{ conda_environment }}/bin'
# List of posix users who should have JupyterHub admin rights
Expand Down
2 changes: 1 addition & 1 deletion roles/jupyter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
notify:
- restart jupyterhub
- name: Remove default conda python kernel
command: /mnt/apps/conda/envs/ewatercycle/bin/jupyter kernelspec remove -f conda
command: '{{ conda_environment_bin }}/bin/jupyter kernelspec remove -f conda'
args:
removes: /usr/local/share/jupyter/kernels/conda
notify:
Expand Down

0 comments on commit 8d65b35

Please sign in to comment.