Skip to content

Commit

Permalink
fix macos wheel tag for py 3.10
Browse files Browse the repository at this point in the history
(fixes letmaik#167)
  • Loading branch information
letmaik committed Feb 24, 2022
1 parent 183b36e commit 12cf40d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ popd

ls -al $LIB_INSTALL_PREFIX/lib

# By default, wheels are tagged with the architecture of the Python
# installation, which would produce universal2 even if only building
# for x86_64. The following line overrides that behavior.
export _PYTHON_HOST_PLATFORM="macosx-${MACOS_MIN_VERSION}-x86_64"

export CC=clang
export CXX=clang++
export CFLAGS="-arch x86_64"
Expand Down

0 comments on commit 12cf40d

Please sign in to comment.