Skip to content

Commit 6993962

Browse files
committed
fix: build_mac_wheel.sh now explicitly make non-freethreaded versions if the version number does not include a "t" at end
1 parent f08bb8e commit 6993962

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build_mac_wheel.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ generate_wheel(){
2525
uv_exec=$1
2626
project_root=$2
2727
python_version=$3
28+
if [[ $python_version != *t ]]; then
29+
python_version="${python_version}+gil"
30+
fi
2831

2932
# Get the processor type
3033
processor_type=$(uname -m)
@@ -52,6 +55,7 @@ generate_wheel(){
5255

5356
out_temp_wheels_dir=$(mktemp -d /tmp/python_wheels.XXXXXX)
5457
output_path="./dist"
58+
echo "Building wheel for Python $python_version on macOS $processor_type"
5559
trap "rm -rf $out_temp_wheels_dir" ERR SIGINT SIGTERM RETURN
5660
UV_INDEX_STRATEGY=unsafe-best-match _PYTHON_HOST_PLATFORM=$_PYTHON_HOST_PLATFORM MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET ARCHFLAGS=$ARCHFLAGS $uv_exec build --wheel --out-dir=$out_temp_wheels_dir --python=$python_version $project_root
5761
pattern="$out_temp_wheels_dir/*.whl"

0 commit comments

Comments
 (0)