Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS miniconda setup #1

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jupyter lab

1. Jupyter Lab will open in your default browser at http://localhost:8888
2. Navigate to notebooks/ directory to access development notebooks
3. Generated code will be saved to src/symbolic/ directory
4. Run tests using:
3. Generated code will be saved to src/notebooks/ directory

#### Runing Tests
Run tests using:
```
pytest tests/
```
Expand Down
22 changes: 19 additions & 3 deletions environment/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,25 @@ if [ -d "$HOME/miniconda3" ]; then
fi
else
echo "Installing Miniconda..."
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
rm Miniconda3-latest-Linux-x86_64.sh
#check if mac
if [ $OSTYPE == 'darwin'* ]; then
#if apple silicon
if [uname -p == 'arm']; then
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
bash Miniconda3-latest-MacOSX-arm64.sh -b -p $HOME/miniconda3
rm Miniconda3-latest-MacOSX-arm64.sh
#if intel
else
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh -b -p $HOME/miniconda3
rm Miniconda3-latest-MacOSX-x86_64.sh
fi
#otherwise assume linux
else
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
rm Miniconda3-latest-Linux-x86_64.sh
fi
init_conda
fi

Expand Down