This is an automated email from the ASF dual-hosted git repository.

kszucs pushed a commit to branch release-5.0.0
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/release-5.0.0 by this push:
     new 410802a  ARROW-13450: [Python][Packaging] Set deployment target to 
10.13 for universal2 wheels
410802a is described below

commit 410802af4f78d7cacd7d9d8e1450d93bdf6250f0
Author: Krisztián Szűcs <[email protected]>
AuthorDate: Mon Jul 26 21:51:40 2021 +0200

    ARROW-13450: [Python][Packaging] Set deployment target to 10.13 for 
universal2 wheels
    
    Despite that having native wheels for Intel architectures the universal2 
wheel is being built with newer macOS version, so pip will prefer the universal 
wheel rather than the `x86_64` one.
    
    ```
    pyarrow-5.0.0-cp39-cp39-macosx_10_13_x86_64.whl
    pyarrow-5.0.0-cp39-cp39-macosx_10_9_x86_64.whl
    pyarrow-5.0.0-cp39-cp39-macosx_11_0_arm64.whl
    pyarrow-5.0.0-cp39-cp39-macosx_11_0_universal2.whl
    ```
    
    This PR changes the universal wheel to have an older platform tag:
    
    ```
    pyarrow-5.0.0-cp39-cp39-macosx_10_13_universal2.whl
    ```
    
    Closes #10801 from kszucs/universal2-10-13
    
    Authored-by: Krisztián Szűcs <[email protected]>
    Signed-off-by: Krisztián Szűcs <[email protected]>
---
 ci/vcpkg/arm64-osx-static-debug.cmake        | 1 +
 ci/vcpkg/arm64-osx-static-release.cmake      | 1 +
 ci/vcpkg/universal2-osx-static-debug.cmake   | 1 +
 ci/vcpkg/universal2-osx-static-release.cmake | 1 +
 dev/tasks/tasks.yml                          | 4 ++--
 5 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ci/vcpkg/arm64-osx-static-debug.cmake 
b/ci/vcpkg/arm64-osx-static-debug.cmake
index 6ed92b2..f511819 100644
--- a/ci/vcpkg/arm64-osx-static-debug.cmake
+++ b/ci/vcpkg/arm64-osx-static-debug.cmake
@@ -21,5 +21,6 @@ set(VCPKG_LIBRARY_LINKAGE static)
 
 set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
 set(VCPKG_OSX_ARCHITECTURES arm64)
+set(VCPKG_OSX_DEPLOYMENT_TARGET "11.0")
 
 set(VCPKG_BUILD_TYPE debug)
diff --git a/ci/vcpkg/arm64-osx-static-release.cmake 
b/ci/vcpkg/arm64-osx-static-release.cmake
index 0aa7812..43d65ef 100644
--- a/ci/vcpkg/arm64-osx-static-release.cmake
+++ b/ci/vcpkg/arm64-osx-static-release.cmake
@@ -21,5 +21,6 @@ set(VCPKG_LIBRARY_LINKAGE static)
 
 set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
 set(VCPKG_OSX_ARCHITECTURES arm64)
+set(VCPKG_OSX_DEPLOYMENT_TARGET "11.0")
 
 set(VCPKG_BUILD_TYPE release)
diff --git a/ci/vcpkg/universal2-osx-static-debug.cmake 
b/ci/vcpkg/universal2-osx-static-debug.cmake
index 7406ef3..706ac47 100644
--- a/ci/vcpkg/universal2-osx-static-debug.cmake
+++ b/ci/vcpkg/universal2-osx-static-debug.cmake
@@ -21,5 +21,6 @@ set(VCPKG_LIBRARY_LINKAGE static)
 
 set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
 set(VCPKG_OSX_ARCHITECTURES "x86_64\;arm64")
+set(VCPKG_OSX_DEPLOYMENT_TARGET "10.13")
 
 set(VCPKG_BUILD_TYPE debug)
diff --git a/ci/vcpkg/universal2-osx-static-release.cmake 
b/ci/vcpkg/universal2-osx-static-release.cmake
index 0388ce7..8670690 100644
--- a/ci/vcpkg/universal2-osx-static-release.cmake
+++ b/ci/vcpkg/universal2-osx-static-release.cmake
@@ -21,5 +21,6 @@ set(VCPKG_LIBRARY_LINKAGE static)
 
 set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
 set(VCPKG_OSX_ARCHITECTURES "x86_64\;arm64")
+set(VCPKG_OSX_DEPLOYMENT_TARGET "10.13")
 
 set(VCPKG_BUILD_TYPE release)
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 93bce87..2af7a84 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -400,9 +400,9 @@ tasks:
       arch: universal2
       vcpkg_version: "2021.04.30"
       python_version: "3.9"
-      macos_deployment_target: "11.0"
+      macos_deployment_target: "10.13"
     artifacts:
-      - pyarrow-{no_rc_version}-cp39-cp39-macosx_11_0_universal2.whl
+      - pyarrow-{no_rc_version}-cp39-cp39-macosx_10_13_universal2.whl
 
 {############################ Python sdist 
####################################}
 

Reply via email to