Skip to content

Commit 6660743

Browse files
committed
fix macos wheel tag
1 parent a7af88f commit 6660743

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/scripts/build-macos.sh

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ pip install numpy==$NUMPY_VERSION wheel delocate
3434
# List installed packages
3535
pip freeze
3636

37+
# By default, wheels are tagged with the architecture of the Python
38+
# installation, which would produce universal2 even if only building
39+
# for x86_64. The following line overrides that behavior.
40+
export _PYTHON_HOST_PLATFORM="macosx-${MACOS_MIN_VERSION}-x86_64"
41+
3742
export CC=clang
3843
export CXX=clang++
3944
export CFLAGS="-arch x86_64"

0 commit comments

Comments
 (0)