You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2022/12/06 18:59:50 UTC
[arrow-adbc] branch main updated: ci: fix manual tagging of macOS AArch64 wheels (#221)
This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 9311d2b ci: fix manual tagging of macOS AArch64 wheels (#221)
9311d2b is described below
commit 9311d2be916b15b0e3fb3267f3a3f46122fa5ebc
Author: David Li <li...@gmail.com>
AuthorDate: Tue Dec 6 13:59:46 2022 -0500
ci: fix manual tagging of macOS AArch64 wheels (#221)
---
ci/scripts/python_wheel_unix_build.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/ci/scripts/python_wheel_unix_build.sh b/ci/scripts/python_wheel_unix_build.sh
index 487111d..e49960e 100755
--- a/ci/scripts/python_wheel_unix_build.sh
+++ b/ci/scripts/python_wheel_unix_build.sh
@@ -61,14 +61,18 @@ function check_wheels {
echo "=== Set up platform variables ==="
setup_build_vars "${arch}"
-echo "${PYTHON_ARCH}"
-
# XXX: when we manually retag the wheel, we have to use the right arch
# tag accounting for cross-compiling, hence the replacements
PLAT_NAME=$(python -c "import sysconfig; print(sysconfig.get_platform()\
.replace('-x86_64', '-${PYTHON_ARCH}')\
.replace('-arm64', '-${PYTHON_ARCH}')\
.replace('-universal2', '-${PYTHON_ARCH}'))")
+if [[ "${arch}" = "arm64v8" && "$(uname)" = "Darwin" ]]; then
+ # Manually override the tag in this case - CI will naively generate
+ # "macos_10_9_arm64" but this isn't a 'real' tag because the first
+ # version of macOS supporting AArch64 was macOS 11 Big Sur
+ PLAT_NAME="macos_11_0_arm64"
+fi
echo "=== Building C/C++ driver components ==="
# Sets ADBC_POSTGRES_LIBRARY, ADBC_SQLITE_LIBRARY