forked from cropsinsilico/BML-yggdrasil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·24 lines (24 loc) · 1.14 KB
/
install.sh
File metadata and controls
executable file
·24 lines (24 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
# 1. Install older version of zeromq as version 4.3.5 is missing
# _zmq_ctx_get_ext that is expected by the conda-forge distribution
# of libczmq
mamba install -y zeromq==4.3.4
# 2. Configure the OpenSimRoot repository path (added for future use)
yggconfig --osr-repository-path $SCRIPTPATH/models/OpenSimRoot
# 3. Compile the yggdrasil C & C++ interfaces
yggcompile c cpp
# 4. Install BioCro (will be done at runtime if not here)
Rscript -e "install.packages('BioCro', repos='https://cran.rstudio.com')"
# R CMD BATCH install.R
# 5. Install yggdrasilBML wrapper modules
R CMD INSTALL $SCRIPTPATH/.
# yggcc . # This does not work on ubuntu w/ yggdrasil from conda-forge
# For compat with yggdrasil on main which assumes no scope when
# wrapping CMakeLists.txt and linking target to yggdrasil library
# via target_include_directories. yggdrasil on param branch fixes this.
# To update the patch, make the desired changes in the ePhotosynthesis_C
# submodule run the following:
# ./models/patches/make_patches.sh
bash $SCRIPTPATH/models/patches/apply_patches.sh