diff --git a/third_party/git/git_configure.bzl b/third_party/git/git_configure.bzl index fc18fdb9883..3ce64242af6 100644 --- a/third_party/git/git_configure.bzl +++ b/third_party/git/git_configure.bzl @@ -18,6 +18,9 @@ def _get_python_bin(repository_ctx): python_bin = repository_ctx.os.environ.get(_PYTHON_BIN_PATH) if python_bin != None: return python_bin + python_bin_path = repository_ctx.which("python3") + if python_bin_path != None: + return str(python_bin_path) python_bin_path = repository_ctx.which("python") if python_bin_path != None: return str(python_bin_path)