From 3785677cc84fc4024fda85575c05efbde5d512fc Mon Sep 17 00:00:00 2001 From: Oscar Bonilla <6f6231@gmail.com> Date: Tue, 22 Mar 2022 13:00:55 -0700 Subject: [PATCH] Use python3 on macOS macOS 12.3 removed `/usr/bin/python2.7` and `/usr/bin/python`. We need to use `python3` now. Closes #15045. PiperOrigin-RevId: 436548693 --- tools/objc/libtool.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/objc/libtool.sh b/tools/objc/libtool.sh index 94219e2bbca817..0d8f643884e733 100755 --- a/tools/objc/libtool.sh +++ b/tools/objc/libtool.sh @@ -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=()