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

chaokunyang pushed a commit to tag v0.10.0
in repository https://gitbox.apache.org/repos/asf/fury.git

commit 0b6eedf45774454a5cbc8f3108788e5887e2590c
Author: chaokunyang <[email protected]>
AuthorDate: Thu Feb 6 21:39:54 2025 +0800

    fix wheel build
---
 .github/workflows/release.yaml | 11 ++---------
 ci/deploy.sh                   | 14 ++++++++++++++
 2 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 866697fe..a4ad2821 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -52,15 +52,8 @@ jobs:
         run: ci/deploy.sh bump_py_version
       - name: Build a binary wheel
         run: |
-          ci/deploy.sh install_pyarrow
-          pip install setuptools wheel Cython numpy pytest
-          cd python
-          pip list
-          export PATH=~/bin:$PATH
-          echo "Build pyfury"
-          bazel build //:cp_fury_so
-          python setup.py bdist_wheel --dist-dir=../dist
-          ../ci/deploy.sh rename_linux_wheels $PWD/../dist
+          ci/deploy.sh build_pyfury
+          ci/deploy.sh rename_linux_wheels dist
       - name: Publish wheel to PyPI
         uses: pypa/gh-action-pypi-publish@release/v1
         with:
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 99c03bfe..3807b5e2 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -101,6 +101,20 @@ deploy_jars() {
   mvn -T10 clean deploy --no-transfer-progress -DskipTests -Prelease
 }
 
+build_pyfury() {
+  echo "Python version $(python -V), path $(which python)"
+  install_pyarrow
+  pip install Cython wheel "numpy<2.0.0" pytest
+  pushd "$ROOT/python"
+  pip list
+  echo "Install pyfury"
+  # Fix strange installed deps not found
+  pip install setuptools -U
+  bazel build //:cp_fury_so
+  python setup.py bdist_wheel --dist-dir=../dist
+  popd
+}
+
 deploy_python() {
   source $(conda info --base)/etc/profile.d/conda.sh
   if command -v pyenv; then


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to