This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to tag v0.12.0-a1 in repository https://gitbox.apache.org/repos/asf/fory.git
commit ea1a4f58e697e60d7a96d11bca209d99ada48767 Author: chaokunyang <[email protected]> AuthorDate: Fri Aug 15 14:02:58 2025 +0800 fix macos wheel --- ci/deploy.sh | 30 ++++++++++++++---------------- python/pyproject.toml | 2 +- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/ci/deploy.sh b/ci/deploy.sh index 7de5af5a3..074bad24b 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -83,22 +83,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 + rename_macos_wheels ../dist elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then echo "Skip windows wheel repair" fi @@ -106,6 +91,19 @@ build_pyfory() { popd } +rename_macos_wheels() { + echo "Rename wheels in $1" + for path in "$1"/*.whl; do + if [ -f "${path}" ]; then + # Copy macosx_14_0_x86_64 to macosx_10_12_x86_64 + if [[ "${path}" == *macosx_14_0_x86_64.whl ]]; then + copy_path="${path//macosx_14_0_x86_64/macosx_10_12_x86_64}" + cp "${path}" "${copy_path}" + fi + fi + done +} + install_pyarrow() { pyversion=$(python -V | cut -d' ' -f2) if [[ $pyversion == 3.13* ]]; then 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]
