You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2025/12/20 00:59:56 UTC
(sedona-spatialbench) branch fix-pypi-crates-publish created (now 467ae27)
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a change to branch fix-pypi-crates-publish
in repository https://gitbox.apache.org/repos/asf/sedona-spatialbench.git
at 467ae27 Fix the failed Python build
This branch includes the following new commits:
new 467ae27 Fix the failed Python build
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(sedona-spatialbench) 01/01: Fix the failed Python build
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch fix-pypi-crates-publish
in repository https://gitbox.apache.org/repos/asf/sedona-spatialbench.git
commit 467ae27dd40d55aacf677853fd4aa1557b8e0130
Author: Jia Yu <ji...@gmail.com>
AuthorDate: Fri Dec 19 16:59:49 2025 -0800
Fix the failed Python build
---
.github/workflows/build-py-packages.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.github/workflows/build-py-packages.yml b/.github/workflows/build-py-packages.yml
index f45f26e..ec4774b 100644
--- a/.github/workflows/build-py-packages.yml
+++ b/.github/workflows/build-py-packages.yml
@@ -73,6 +73,16 @@ jobs:
steps:
- uses: actions/checkout@v4
+ - name: Set ARM architecture flags for Linux cross-compilation
+ if: (matrix.target == 'aarch64' || matrix.target == 'armv7') && (matrix.os == 'linux' || matrix.os == 'musllinux')
+ run: |
+ if [ "${{ matrix.target }}" = "aarch64" ]; then
+ echo "CFLAGS_aarch64_unknown_linux_gnu=-D__ARM_ARCH=8" >> $GITHUB_ENV
+ echo "CFLAGS_aarch64_unknown_linux_musl=-D__ARM_ARCH=8" >> $GITHUB_ENV
+ elif [ "${{ matrix.target }}" = "armv7" ]; then
+ echo "CFLAGS_armv7_unknown_linux_gnueabihf=-D__ARM_ARCH=7" >> $GITHUB_ENV
+ echo "CFLAGS_armv7_unknown_linux_musleabihf=-D__ARM_ARCH=7" >> $GITHUB_ENV
+ fi
- name: Build wheels
uses: PyO3/maturin-action@v1
with: