-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpostBuild
25 lines (21 loc) · 852 Bytes
/
postBuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
## clone and install pysumma
git clone https://github.com/UW-Hydro/pysumma.git --branch v3.0.3; cd pysumma
conda env create -f environment.yml
pip install .
pip install geoviews
## clone and install summa
cd ..; git clone https://github.com/CH-Earth/summa
## export necessary environment variables specified in Makefile
export F_MASTER=/home/jovyan/summa
export FC=gfortran
export FC_EXE=/usr/bin/gfortran-6
export INCLUDES='-I/usr/include'
export LIBRARIES='-L/usr/lib -lnetcdff -lblas -llapack'
## build from Makefile
make -f ${F_MASTER}/build/Makefile
#cp /home/jovyan/summa/bin/summa.exe /usr/bin/summa.exe
# Install the JupyterLab dask-labextension
# jupyter labextension install dask-labextension@1.1.0
# jupyter labextension install @jupyter-widgets/jupyterlab-manager
# jupyter labextension install @bokeh/jupyter_bokeh