Skip to content

Commit 16d2f8e

Browse files
committed
simplified build mac wheels compiling
1 parent 37b356d commit 16d2f8e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/build_mac_wheel.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,17 @@ generate_wheel(){
3838
# have that as a minimum.
3939

4040
if [ "$processor_type" == "arm64" ]; then
41-
_PYTHON_HOST_PLATFORM='macosx-11.0-arm64'
4241
MACOSX_DEPLOYMENT_TARGET='11.0'
4342
ARCHFLAGS='-arch arm64'
4443
REQUIRED_ARCH='arm64'
4544
elif [ "$processor_type" == "x86_64" ]; then
46-
_PYTHON_HOST_PLATFORM='macosx-10.15-x86_64'
4745
MACOSX_DEPLOYMENT_TARGET='10.15'
48-
ARCHFLAGS='-arch x86_64'
4946
REQUIRED_ARCH='x86_64'
47+
ARCHFLAGS='-arch x86_64'
5048
else
5149
echo "Unknown processor type: $processor_type"
5250
fi
51+
_PYTHON_HOST_PLATFORM="macosx-$MACOSX_DEPLOYMENT_TARGET-$REQUIRED_ARCH"
5352

5453
out_temp_wheels_dir=$(mktemp -d /tmp/python_wheels.XXXXXX)
5554
output_path="./dist"

0 commit comments

Comments
 (0)