Skip to content

Commit 72b2959

Browse files
committed
2 parents 96a5825 + a31aefc commit 72b2959

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

bin/setup_macOS

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@ if which brew >/dev/null; then
1111
else
1212
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1313
fi
14-
if brew cask --version | grep --quiet "Cask" >/dev/null; then
15-
true
16-
else
17-
brew tap homebrew/cask
18-
fi
1914

2015
echo "--- Installing brew system dependencies ---"
21-
hb_list=(cmake boost boost-python sdl2 swig wget curl)
16+
hb_list=(cmake boost boost-python3 sdl2 swig)
2217
for item in "${hb_list[@]}"; do
18+
echo "Installing ${item}"
2319
brew info "${item}" | grep --quiet "Not installed" && brew install "${item}"
2420
done
2521

@@ -28,13 +24,17 @@ if which conda >/dev/null; then
2824
echo "Conda is already installed"
2925
else
3026
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
31-
bash Miniconda3-latest-MacOSX-x86_64.sh -b
27+
bash Miniconda3-latest-MacOSX-x86_64.sh -b -p ~/miniconda3
3228
rm Miniconda3-latest-MacOSX-x86_64.sh
3329
echo '. ~/miniconda3/etc/profile.d/conda.sh' >> ~/.bash_profile
3430
source ~/.bash_profile
3531
fi
3632

3733
echo "--- Installing Conda environment ---"
34+
if ! which conda >/dev/null; then
35+
# guard for when no Conda is found, e.g. in Colab
36+
export PATH=~/miniconda3/bin:$PATH
37+
fi
3838
if conda env list | grep "^lab " >/dev/null; then
3939
echo "conda env lab is already installed"
4040
else

bin/setup_ubuntu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ if which conda >/dev/null; then
1717
echo "Conda is already installed"
1818
else
1919
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
20-
bash Miniconda3-latest-Linux-x86_64.sh -b
20+
bash Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3
2121
rm Miniconda3-latest-Linux-x86_64.sh
2222
echo '. ~/miniconda3/etc/profile.d/conda.sh' >> ~/.bashrc
2323
source ~/.bashrc
2424
fi
2525

2626
echo "--- Installing Conda environment ---"
27+
if ! which conda >/dev/null; then
28+
# guard for when no Conda is found, e.g. in Colab
29+
export PATH=~/miniconda3/bin:$PATH
30+
fi
2731
if conda env list | grep "^lab " >/dev/null; then
2832
echo "conda env lab is already installed"
2933
else

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ dependencies:
4747
- gym[classic_control]
4848
- pybullet==2.8.4
4949
- roboschool==1.0.46
50-
- atari-py
50+
- atari-py==0.2.6

0 commit comments

Comments
 (0)