diff --git a/ws_iaac_2024/installer.zip b/ws_iaac_2024/installer.zip new file mode 100644 index 0000000..d91d3b5 Binary files /dev/null and b/ws_iaac_2024/installer.zip differ diff --git a/ws_iaac_2024/mac_install.bash b/ws_iaac_2024/mac_install.bash new file mode 100644 index 0000000..081421b --- /dev/null +++ b/ws_iaac_2024/mac_install.bash @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +CONDA_HOME=$HOME/miniconda +CONDA_BIN=$CONDA_HOME/condabin +CONDA_ENV_NAME=ws_iaac_2024 + +if ! command -V conda &> /dev/null +then + echo "Installing miniconda (Python distribution)…" + curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o ./miniconda.sh &> /dev/null + bash ./miniconda.sh -b -u -p $CONDA_HOME &> /dev/null + echo "Installing miniconda (Python distribution)…Done!" + + echo "Configuring miniconda for first use…" + $CONDA_BIN/conda init bash &> /dev/null + source $HOME/.bash_profile &> /dev/null + echo "Configuring miniconda for first use…Done!" +else + CONDA_HOME=$(dirname $(dirname $CONDA_EXE)) +fi + +echo "Creating virtual environment…" +conda create -c conda-forge -n $CONDA_ENV_NAME compas compas_fab=0.28 compas_eve cmake boost opencv python=3.10 -y &> /dev/null +echo "Creating virtual environment…Done" + +echo "Activating virtual environment…" +source $CONDA_HOME/bin/activate $CONDA_ENV_NAME +echo "Activating virtual environment…Done!" + +echo "Installing development tools…" +python -m pip install ur-rtde black flake8 isort pytest rhino-stubs -q +echo "Installing development tools…Done!" + +echo "Installing on Rhino…" +python -m compas_rhino.install -v 7.0 +echo "Installing on Rhino…Done!"