Skip to content

Commit

Permalink
Make the install script more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
radekd91 committed Feb 13, 2023
1 parent 9e90e9f commit 62456e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install_38.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/bash
if ! command -v mamba &> /dev/null
then
echo "mamba could not be found. Please install mamba before running this script"
exit
fi

echo "Pulling submodules"
bash pull_submodules.sh
echo "Installing mamba"
conda install mamba -n base -c conda-forge
if ! command -v mamba &> /dev/null
then
echo "mamba could not be found. The installation must have failed. Please install mamba before running this script."
exit
fi
echo "Creating conda environment"
mamba env create -n work38 python=3.8
eval "$(conda shell.bash hook)" # make sure conda works in the shell script
conda activate work38
echo "Installing conda packages"
mamba env update -n work38 --file conda-environment_py38_cu11_ubuntu.yml
echo "Installing GDL"
pip install Cython==0.29
Expand Down

0 comments on commit 62456e2

Please sign in to comment.