From e239385c108505373ebf817e5b1c6b79d32c0e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Wed, 3 Jul 2024 16:28:05 +0200 Subject: [PATCH] GH-41696: [Python][Packaging] Bump MacOS Deployment Target to 12 instead of 11 --- .github/workflows/python.yml | 2 +- ci/scripts/python_wheel_macos_build.sh | 2 +- dev/tasks/tasks.yml | 6 +++--- dev/tasks/verify-rc/github.macos.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a568f8346e7fc..d3b2dbba674ff 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -164,7 +164,7 @@ jobs: ARROW_BUILD_TESTS: OFF PYARROW_TEST_LARGE_MEMORY: ON # Current oldest supported version according to https://endoflife.date/macos - MACOSX_DEPLOYMENT_TARGET: 10.15 + MACOSX_DEPLOYMENT_TARGET: 12.0 steps: - name: Checkout Arrow uses: actions/checkout@v4 diff --git a/ci/scripts/python_wheel_macos_build.sh b/ci/scripts/python_wheel_macos_build.sh index 3ed9d5d8dd12f..2c6b4f90418af 100755 --- a/ci/scripts/python_wheel_macos_build.sh +++ b/ci/scripts/python_wheel_macos_build.sh @@ -34,7 +34,7 @@ rm -rf ${source_dir}/python/pyarrow/*.so.* echo "=== (${PYTHON_VERSION}) Set SDK, C++ and Wheel flags ===" export _PYTHON_HOST_PLATFORM="macosx-${MACOSX_DEPLOYMENT_TARGET}-${arch}" -export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-10.15} +export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-12.0} export SDKROOT=${SDKROOT:-$(xcrun --sdk macosx --show-sdk-path)} if [ $arch = "arm64" ]; then diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml index 61df283960ccf..d27cd3b6642f2 100644 --- a/dev/tasks/tasks.yml +++ b/dev/tasks/tasks.yml @@ -398,7 +398,7 @@ tasks: {############################## Wheel macOS ####################################} -{% for macos_version, macos_codename in [("10.15", "catalina")] %} +{% for macos_version, macos_codename in [("12.0", "monterey")] %} {% set platform_tag = "macosx_{}_x86_64".format(macos_version.replace('.', '_')) %} wheel-macos-{{ macos_codename }}-{{ python_tag }}-amd64: @@ -416,14 +416,14 @@ tasks: {% endfor %} - wheel-macos-big-sur-{{ python_tag }}-arm64: + wheel-macos-monterey-{{ python_tag }}-arm64: ci: github template: python-wheels/github.osx.yml params: arch: "arm64" arrow_jemalloc: "OFF" python_version: "{{ python_version }}" - macos_deployment_target: "11.0" + macos_deployment_target: "12.0" runs_on: "macos-14" vcpkg_arch: "arm64" artifacts: diff --git a/dev/tasks/verify-rc/github.macos.yml b/dev/tasks/verify-rc/github.macos.yml index 4bc3fff71b64a..e2bc7895c6d05 100644 --- a/dev/tasks/verify-rc/github.macos.yml +++ b/dev/tasks/verify-rc/github.macos.yml @@ -22,7 +22,7 @@ {% set use_conda = use_conda|default(False) %} # env: is generated by macros.github_header() # Current oldest supported version according to https://endoflife.date/macos - MACOSX_DEPLOYMENT_TARGET: "10.15" + MACOSX_DEPLOYMENT_TARGET: "12.0" jobs: verify: