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 436e48b  ARROW-13461: [Python][Packaging] Build M1 wheels for python 
3.8
436e48b is described below

commit 436e48bb379b25242c2d39db14f5bd6a0303c4fa
Author: Krisztián Szűcs <[email protected]>
AuthorDate: Tue Jul 27 17:56:18 2021 +0200

    ARROW-13461: [Python][Packaging] Build M1 wheels for python 3.8
    
    Closes #10812 from kszucs/apple-silicon-py38
    
    Authored-by: Krisztián Szűcs <[email protected]>
    Signed-off-by: Krisztián Szűcs <[email protected]>
---
 ci/scripts/install_python.sh                 |  2 +-
 dev/tasks/python-wheels/github.osx.arm64.yml |  6 +++---
 dev/tasks/tasks.yml                          | 28 ++++++++++++++++++++++------
 3 files changed, 26 insertions(+), 10 deletions(-)

diff --git a/ci/scripts/install_python.sh b/ci/scripts/install_python.sh
index bede672..088da81 100755
--- a/ci/scripts/install_python.sh
+++ b/ci/scripts/install_python.sh
@@ -27,7 +27,7 @@ platforms=([windows]=Windows
 declare -A versions
 versions=([3.6]=3.6.8
           [3.7]=3.7.9
-          [3.8]=3.8.9
+          [3.8]=3.8.10
           [3.9]=3.9.6)
 
 if [ "$#" -ne 2 ]; then
diff --git a/dev/tasks/python-wheels/github.osx.arm64.yml 
b/dev/tasks/python-wheels/github.osx.arm64.yml
index 4fa95bb..90e15a6 100644
--- a/dev/tasks/python-wheels/github.osx.arm64.yml
+++ b/dev/tasks/python-wheels/github.osx.arm64.yml
@@ -139,14 +139,14 @@ jobs:
         run: |
           $PYTHON -m virtualenv crossbow-env
           source crossbow-env/bin/activate
-          arch -arm64 pip install -e arrow/dev/archery[crossbow-upload]
-          arch -arm64 archery crossbow \
+          arch -x86_64 pip install -e arrow/dev/archery[crossbow-upload]
+          arch -x86_64 archery crossbow \
           --queue-path $(pwd) \
           --queue-remote {{ queue_remote_url }} \
           upload-artifacts \
           --sha {{ task.branch }} \
           --tag {{ task.tag }} \
-          "arrow/python/dist/*.whl"
+          "arrow/python/repaired_wheels/*.whl"
         env:
           CROSSBOW_GITHUB_TOKEN: {{ "${{ secrets.CROSSBOW_GITHUB_TOKEN || 
secrets.GITHUB_TOKEN }}" }}
 
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 2af7a84..02a1428 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -382,27 +382,43 @@ tasks:
 
 {############################## Wheel OSX M1 #################################}
 
-  wheel-macos-big-sur-cp39-arm64:
+  # The python 3.8 universal2 installer has been built with macos deployment
+  # target 11.0, so we cannot build binaries with earlier deployment target
+  # otherwise distutils will raise a deployment target version mismatch error.
+  wheel-macos-big-sur-py38-arm64:
     ci: github
     template: python-wheels/github.osx.arm64.yml
     params:
       arch: arm64
       vcpkg_version: "2021.04.30"
-      python_version: "3.9"
+      python_version: "3.8"
       macos_deployment_target: "11.0"
     artifacts:
-      - pyarrow-{no_rc_version}-cp39-cp39-macosx_11_0_arm64.whl
+      - pyarrow-{no_rc_version}-cp38-cp38-macosx_11_0_arm64.whl
 
-  wheel-macos-big-sur-cp39-universal2:
+{% for python_version, python_tag in [("3.9", "cp39")] %}
+  wheel-macos-big-sur-{{ python_tag }}-arm64:
+    ci: github
+    template: python-wheels/github.osx.arm64.yml
+    params:
+      arch: arm64
+      vcpkg_version: "2021.04.30"
+      python_version: "{{ python_version }}"
+      macos_deployment_target: "11.0"
+    artifacts:
+      - pyarrow-{no_rc_version}-{{ python_tag }}-{{ python_tag 
}}-macosx_11_0_arm64.whl
+
+  wheel-macos-big-sur-{{ python_tag }}-universal2:
     ci: github
     template: python-wheels/github.osx.arm64.yml
     params:
       arch: universal2
       vcpkg_version: "2021.04.30"
-      python_version: "3.9"
+      python_version: "{{ python_version }}"
       macos_deployment_target: "10.13"
     artifacts:
-      - pyarrow-{no_rc_version}-cp39-cp39-macosx_10_13_universal2.whl
+      - pyarrow-{no_rc_version}-{{ python_tag }}-{{ python_tag 
}}-macosx_10_13_universal2.whl
+{% endfor %}
 
 {############################ Python sdist 
####################################}
 

Reply via email to