diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index c73bad71e..8342a739c 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -25,7 +25,8 @@ jobs: include = [ {"os": "ubuntu-latest", "arch": "x86_64", "tag": "cp3{8,9,10,11,12}-manylinux_x86_64"}, {"os": "windows-latest", "arch": "x86_64", "tag": "cp3{8,9,10,11,12}-win_amd64"}, - {"os": "macos-13", "arch": "universal2", "tag": "cp3{8,9,10}-macosx_universal2"}, + {"os": "macos-13", "arch": "x86_64", "tag": "cp38-macosx_x86_64"}, + {"os": "macos-13", "arch": "universal2", "tag": "cp3{9,10}-macosx_universal2"}, {"os": "macos-14", "arch": "universal2", "tag": "cp3{11,12}-macosx_universal2"}, ] if "${{ github.event_name }}" != "pull_request": diff --git a/ci/build-wheel.sh b/ci/build-wheel.sh index 0443871e9..9b2bf337d 100755 --- a/ci/build-wheel.sh +++ b/ci/build-wheel.sh @@ -85,7 +85,7 @@ echo "::endgroup::" mkdir -p wheelhouse >/dev/null if [[ $PY_PLATFORM == linux* ]]; then echo "::group::Build sdist" - uv build --no-build-isolation --sdist -o wheelhouse + uv build -p $PY_VERSION --no-build-isolation --sdist -o wheelhouse echo "::endgroup::" fi echo "::group::Build wheel(s)" diff --git a/pyproject.toml b/pyproject.toml index 9d9462a9f..bd785bb9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -163,6 +163,8 @@ build-verbosity = 1 skip = [ "cp3{8,9}-musllinux_*", "cp3{8,9}-manylinux_ppc64le", + "cp38-macosx_universal2", + "cp3{9,10,11,12}-macosx_x86_64", ] [tool.cibuildwheel.linux] @@ -173,7 +175,7 @@ cd /opt/_internal && tar -xvf static-libs-for-embedding-only.tar.xz repair-wheel-command = "auditwheel repair -L /bases/lib -w {dest_dir} {wheel}" [tool.cibuildwheel.macos] -archs = "universal2" +archs = "x86_64 universal2" repair-wheel-command = """ delocate-listdeps {wheel} && delocate-wheel --require-archs {delocate_archs} -L bases/lib -w {dest_dir} {wheel}