From d80f2e39f57cfd5cb4f43420d88c7bb8a58c006f Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Tue, 17 Nov 2026 07:01:16 -0700 Subject: [PATCH] fix(ci): use python3 in build.sh on macOS macOS does not ship a python executable, so building the source release fails when it computes pom.xml paths. Use ${PYTHON:-python3}, as dev/release/run_rat.sh already does. Co-Authored-By: Claude Opus 5.5 --- ci/scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/build.sh b/ci/scripts/build.sh index 146a40cf7a..2d56c918f0 100755 --- a/ci/scripts/build.sh +++ b/ci/scripts/build.sh @@ -48,7 +48,7 @@ cp -r "${source_dir}/dev" "${build_dir}" poms=$(find "${source_dir}" -not \( -path "${source_dir}"/build -prune \) -type f -name pom.xml) if [[ "$OSTYPE" == "darwin"* ]]; then - poms=$(echo "$poms" | xargs -n1 python -c "import sys; import os.path; print(os.path.relpath(sys.argv[1], '${source_dir}'))") + poms=$(echo "$poms" | xargs -n1 "${PYTHON:-python3}" -c "import sys; import os.path; print(os.path.relpath(sys.argv[1], '${source_dir}'))") else poms=$(echo "$poms" | xargs -n1 realpath -s --relative-to="${source_dir}") fi