-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1250 from google-deepmind:lanctot-patch-60
PiperOrigin-RevId: 652910944 Change-Id: Idac5292327cb87101dad8dfbc488eb86fe42b251
- Loading branch information
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -287,10 +287,12 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then # Mac OSX | |
[[ -x `which python3` ]] || brew install python3 || echo "** Warning: failed 'brew install python3' -- continuing" | ||
# On Github Actions, macOS comes with Python 3.9. | ||
# We want to test multiple Python versions determined by OS_PYTHON_VERSION. | ||
if [[ "$CI" && "${OS_PYTHON_VERSION}" != "3.9" ]]; then | ||
brew install "python@${OS_PYTHON_VERSION}" | ||
if [[ "$CI" ]]; then | ||
# Only install the python version if it's not present. There are issues otherwise. | ||
if [[ `brew list python@${OS_PYTHON_VERSION}; echo $?` == 0 ]]; then | ||
brew install "python@${OS_PYTHON_VERSION}" | ||
fi | ||
# Uninstall Python 3.9 if we need to. | ||
brew list [email protected] && brew unlink [email protected] | ||
brew link --force --overwrite "python@${OS_PYTHON_VERSION}" | ||
fi | ||
`python3 -c "import tkinter" > /dev/null 2>&1` || brew install tcl-tk || echo "** Warning: failed 'brew install tcl-tk' -- continuing" | ||
|