This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new c0dc6c5d4e GH-49327: [Python][Packaging] Use ARROW_SIMD_LEVEL=NEON for
macOS arm64 (#50181)
c0dc6c5d4e is described below
commit c0dc6c5d4e96466f85b387ef0803b21da96fb413
Author: Raúl Cumplido <[email protected]>
AuthorDate: Tue Jun 16 02:31:04 2026 +0200
GH-49327: [Python][Packaging] Use ARROW_SIMD_LEVEL=NEON for macOS arm64
(#50181)
### Rationale for this change
Currently macOS arm64 wheels are trying to set `ARROW_SIMD_LEVEL=SSE4_2`
### What changes are included in this PR?
Set `ARROW_SIMD_LEVEL` to `SSE4_2` or `NEON` based on architecture
### Are these changes tested?
Via archery
### Are there any user-facing changes?
No but macOS wheels will use the SIMD optimizations.
* GitHub Issue: #49327
Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
ci/scripts/python_wheel_macos_build.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ci/scripts/python_wheel_macos_build.sh
b/ci/scripts/python_wheel_macos_build.sh
index 31395e26c2..e5a13b3757 100755
--- a/ci/scripts/python_wheel_macos_build.sh
+++ b/ci/scripts/python_wheel_macos_build.sh
@@ -39,8 +39,10 @@ export SDKROOT=${SDKROOT:-$(xcrun --sdk macosx
--show-sdk-path)}
if [ $arch = "arm64" ]; then
export CMAKE_OSX_ARCHITECTURES="arm64"
+ : ${ARROW_SIMD_LEVEL:="NEON"}
elif [ $arch = "x86_64" ]; then
export CMAKE_OSX_ARCHITECTURES="x86_64"
+ : ${ARROW_SIMD_LEVEL:="SSE4_2"}
else
echo "Unexpected architecture: $arch"
exit 1
@@ -68,7 +70,6 @@ echo "=== (${PYTHON_VERSION}) Building Arrow C++ libraries
==="
: ${PARQUET_REQUIRE_ENCRYPTION:=ON}
: ${ARROW_SUBSTRAIT:=ON}
: ${ARROW_S3:=ON}
-: ${ARROW_SIMD_LEVEL:="SSE4_2"}
: ${ARROW_TENSORFLOW:=ON}
: ${ARROW_WITH_BROTLI:=ON}
: ${ARROW_WITH_BZ2:=ON}