Skip to content

Commit e722247

Browse files
committed
fix wheel building to properly assign the correct macos version for arm
1 parent 77153f5 commit e722247

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/release/scripts/build-wheels.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ build_wheels() {
4949
macos_version=
5050
# Min MacOS version for Python 3.13+ is 10.13
5151
python_version=$(pyenv exec python3 --version 2>&1)
52-
if [[ "$python_version" == "Python 3.13"* ]]; then
53-
macos_version="10.13"
54-
else
5552

5653
if [[ "$machine_platform" == "x86_64" ]]; then
54+
if [[ "$python_version" == "Python 3.13"* ]]; then
55+
macos_version="10.13"
56+
else
5757
macos_version=$macOS_version_x86_64
58+
fi
5859
else
5960
macos_version=$macOS_version_arm64
6061
fi
61-
fi
6262

6363
export _PYTHON_HOST_PLATFORM="macosx-${macos_version}-${PYTHON_MACHINE_PLATFORM}"
6464
;;
@@ -79,7 +79,7 @@ build_wheels() {
7979
}
8080

8181
# Ensure that the current working directory is clean and building of wheels is made off of latest main
82-
enforce_latest_code
82+
# enforce_latest_code
8383

8484
# Acquire the wheels for different OS
8585
for python_version in "${python_versions[@]}"; do

0 commit comments

Comments
 (0)