-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·27 lines (21 loc) · 878 Bytes
/
install.sh
File metadata and controls
executable file
·27 lines (21 loc) · 878 Bytes
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
26
27
#!/usr/bin/env bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
mkdir -p ${SCRIPT_DIR}/build
# Checking if Mamba exists, and using that instead
if command -v mamba &> /dev/null; then
CONDA_SOLVER="mamba"
echo "Using mamba for environment creation."
else
CONDA_SOLVER="conda"
echo "Using conda for environment creation."
fi
# Install Conda env
${CONDA_SOLVER} env create -p "${SCRIPT_DIR}/build/conda_env" -f "${SCRIPT_DIR}/isonet2_environment.yml"
# Intall IsoNet via pip
cd ${SCRIPT_DIR}
"${SCRIPT_DIR}/build/conda_env/bin/pip" install .
# Download GUI
curl -L "https://github.com/IsoNet-cryoET/IsoNet2/releases/download/IsoNet-2.0.0-beta/isoapp-1.0.0.AppImage" -o ${SCRIPT_DIR}/build/isoapp-1.0.0.AppImage
chmod +x ${SCRIPT_DIR}/build/isoapp-1.0.0.AppImage
# Source bashrc file
source "${SCRIPT_DIR}/isonet2.bashrc"