Skip to content

Commit

Permalink
add mrac installers
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed Feb 23, 2024
1 parent 74892bb commit d1ff17c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Binary file added ws_iaac_2024/installer.zip
Binary file not shown.
36 changes: 36 additions & 0 deletions ws_iaac_2024/mac_install.bash
Original file line number Diff line number Diff line change
@@ -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!"

0 comments on commit d1ff17c

Please sign in to comment.