From d80f2e39f57cfd5cb4f43420d88c7bb8a58c006f Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Tue, 17 Nov 2026 07:01:16 -0700 Subject: [PATCH 1/2] 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 From 5c6bacfa07216611c538488304c79f88596e9835 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Tue, 24 Nov 2026 08:24:01 -0700 Subject: [PATCH 2/2] fix(ci): compute pom.xml paths with cd and find in build.sh Drop the Python and realpath branches so Linux and macOS share one code path with no Python dependency. Co-Authored-By: Claude Opus 5.5 --- ci/scripts/build.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/ci/scripts/build.sh b/ci/scripts/build.sh index 2d56c918f0..a790f11b1c 100755 --- a/ci/scripts/build.sh +++ b/ci/scripts/build.sh @@ -43,17 +43,11 @@ cp -r "${source_dir}/arrow-format" "${build_dir}" cp -r "${source_dir}/dev" "${build_dir}" # Instead of hardcoding the list of directories to copy, find pom.xml and then -# crawl back up to the top. GNU realpath has --relative-to but this does not -# work on macOS - -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:-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 +# crawl back up to the top. +poms=$(cd "${source_dir}" && find . -not \( -path ./build -prune \) -type f -name pom.xml) -for source_root in $(echo "${poms}" | awk -F/ '{print $1}' | sort -u); do +# ./dataset/pom.xml -> dataset +for source_root in $(echo "${poms}" | awk -F/ '{print $2}' | sort -u); do cp -r "${source_dir}/${source_root}" "${build_dir}" done