Skip to content

Commit

Permalink
Merge pull request #1 from cram9030/feature/mac-setup
Browse files Browse the repository at this point in the history
MacOS miniconda setup
  • Loading branch information
cram9030 authored Jan 22, 2025
2 parents b602007 + ac8f360 commit a5466e5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
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

0 comments on commit a5466e5

Please sign in to comment.