Skip to content

Commit

Permalink
Merge pull request #487 from kengz/fix-install
Browse files Browse the repository at this point in the history
Update installation
  • Loading branch information
kengz authored May 25, 2021
2 parents dddff5e + cd7bc23 commit a31aefc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
14 changes: 7 additions & 7 deletions bin/setup_macOS
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ if which brew >/dev/null; then
else
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if brew cask --version | grep --quiet "Cask" >/dev/null; then
true
else
brew tap homebrew/cask
fi

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

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

echo "--- Installing Conda environment ---"
if ! which conda >/dev/null; then
# guard for when no Conda is found, e.g. in Colab
export PATH=~/miniconda3/bin:$PATH
fi
if conda env list | grep "^lab " >/dev/null; then
echo "conda env lab is already installed"
else
Expand Down
6 changes: 5 additions & 1 deletion bin/setup_ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ if which conda >/dev/null; then
echo "Conda is already installed"
else
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b
bash Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3
rm Miniconda3-latest-Linux-x86_64.sh
echo '. ~/miniconda3/etc/profile.d/conda.sh' >> ~/.bashrc
source ~/.bashrc
fi

echo "--- Installing Conda environment ---"
if ! which conda >/dev/null; then
# guard for when no Conda is found, e.g. in Colab
export PATH=~/miniconda3/bin:$PATH
fi
if conda env list | grep "^lab " >/dev/null; then
echo "conda env lab is already installed"
else
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ dependencies:
- gym[classic_control]
- pybullet==2.8.4
- roboschool==1.0.46
- atari-py
- atari-py==0.2.6

0 comments on commit a31aefc

Please sign in to comment.