Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lanctot authored Dec 5, 2024
1 parent 3e9c68e commit 426892e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions open_spiel/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ function check_install_python() {
rm -f /usr/local/bin/2to3-${OS_PYTHON_VERSION}
rm -f /usr/local/bin/idle${OS_PYTHON_VERSION}
rm -f /usr/local/bin/pydoc${OS_PYTHON_VERSION}
rm -f /usr/local/bin/python${OS_PYTHON_VERSION}
rm -f /usr/local/bin/python${OS_PYTHON_VERSION}-config
rm -f /usr/local/bin/python${OS_PYTHON_VERSION}*
trap 'ret=0; output=$(brew list --versions | grep "python ${OS_PYTHON_VERSION}") || ret="$?"; trap - RETURN' RETURN
if [[ "$output" = "" ]]; then
brew install "python@${OS_PYTHON_VERSION}"
Expand Down

0 comments on commit 426892e

Please sign in to comment.