-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74892bb
commit d1ff17c
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |