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

chaokunyang pushed a commit to tag v0.12.0-a2
in repository https://gitbox.apache.org/repos/asf/fory.git

commit b23508c37292a1d2c2c0acd273ec71f12e42e10f
Author: chaokunyang <[email protected]>
AuthorDate: Fri Aug 15 14:02:58 2025 +0800

    fix macos wheel
---
 ci/deploy.sh          | 31 ++++++++++++++-----------------
 python/pyproject.toml |  2 +-
 2 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/ci/deploy.sh b/ci/deploy.sh
index 7de5af5a3..9a71fceb9 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -72,7 +72,19 @@ build_pyfory() {
   # Fix strange installed deps not found
   pip install setuptools -U
 
-  python setup.py bdist_wheel --dist-dir=../dist
+  if [[ "$OSTYPE" == "darwin"* ]]; then
+    MACOS_VERSION=$(sw_vers -productVersion | cut -d. -f1-2)
+    echo "MACOS_VERSION: $MACOS_VERSION"
+    if [[ "$MACOS_VERSION" == "13"* ]]; then
+      export MACOSX_DEPLOYMENT_TARGET=10.13
+      python setup.py bdist_wheel --plat-name macosx_10_13_x86_64 
--dist-dir=../dist
+    else
+      python setup.py bdist_wheel --dist-dir=../dist
+    fi
+  else
+    python setup.py bdist_wheel --dist-dir=../dist
+  fi
+
   ls -l ../dist
 
   if [ -n "$PLAT" ]; then
@@ -83,22 +95,7 @@ build_pyfory() {
     auditwheel repair ../dist/pyfory-*-linux_*.whl --plat "$PLAT" --exclude 
'*arrow*' --exclude '*parquet*' --exclude '*numpy*' -w ../dist/
     rm ../dist/pyfory-*-linux_*.whl
   elif [[ "$OSTYPE" == "darwin"* ]]; then
-    # Check macOS version
-    MACOS_VERSION=$(sw_vers -productVersion | cut -d. -f1-2)
-    if [[ "$MACOS_VERSION" == "13"* ]]; then
-      # Check if wheel ends with x86_64.whl
-      for wheel in ../dist/pyfory-*-macosx*.whl; do
-        if [[ "$wheel" == *"x86_64.whl" ]]; then
-          echo "Fixing wheel tags for x86_64 wheel: $wheel"
-          wheel tags --platform-tag macosx_12_0_x86_64 "$wheel"
-        else
-          echo "Skipping wheel tags for non-x86_64 wheel: $wheel"
-        fi
-      done
-    else
-      # Other macOS versions: skip wheel repair
-      echo "Skipping wheel repair for macOS $MACOS_VERSION"
-    fi
+    echo "Skip macos wheel repair"
   elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
     echo "Skip windows wheel repair"
   fi
diff --git a/python/pyproject.toml b/python/pyproject.toml
index a18aa7b61..58b81674e 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -59,7 +59,7 @@ all = ["pyarrow"]
 dev = ["ruff"]
 
 [tool.setuptools]
-packages = ["pyfory", "pyfory.format", "pyfory.lib", "pyfory.meta"]
+packages = ["pyfory", "pyfory.format", "pyfory.lib", "pyfory.lib.mmh3", 
"pyfory.meta"]
 include-package-data = true
 zip-safe = false
 


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

Reply via email to