From 64068d2e57a8d84bd9923d39065cfaa8736584d9 Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Tue, 11 Apr 2023 15:42:59 +0800 Subject: [PATCH] Use python3 instead of python2 in macos commands --- foreign_cc/private/framework/toolchains/macos_commands.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foreign_cc/private/framework/toolchains/macos_commands.bzl b/foreign_cc/private/framework/toolchains/macos_commands.bzl index 2fc4b6478..2a14b48fb 100644 --- a/foreign_cc/private/framework/toolchains/macos_commands.bzl +++ b/foreign_cc/private/framework/toolchains/macos_commands.bzl @@ -261,7 +261,7 @@ def replace_symlink(file): # as `readlink` is. return """\ if [[ -L "{file}" ]]; then - target="$(python -c "import os; print(os.path.realpath('{file}'))")" + target="$(python3 -c "import os; print(os.path.realpath('{file}'))")" rm "{file}" && cp -a "${{target}}" "{file}" fi """.format(file = file)