Skip to content

Commit

Permalink
Use python3 on macOS (bazelbuild#15102)
Browse files Browse the repository at this point in the history
macOS 12.3 removed `/usr/bin/python2.7` and `/usr/bin/python`. We need to use `python3` now.

Closes bazelbuild#15045.

PiperOrigin-RevId: 436548693
(cherry picked from commit 3785677)

Co-authored-by: Oscar Bonilla <6f6231@gmail.com>
  • Loading branch information
brentleyjones and ob authored Mar 22, 2022
1 parent c771c43 commit 3b2d686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/objc/libtool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ function hash_objfile() {
echo "$SYMLINK_NAME"
}

python_executable=/usr/bin/python2.7
python_executable=/usr/bin/python3
if [[ ! -x "$python_executable" ]]; then
python_executable=python
python_executable=python3
fi

ARGS=()
Expand Down

0 comments on commit 3b2d686

Please sign in to comment.