diff --git a/src/bonsai/Makefile b/src/bonsai/Makefile index ef3fa44d11..c1d5558e59 100644 --- a/src/bonsai/Makefile +++ b/src/bonsai/Makefile @@ -66,7 +66,11 @@ BLENDER_PLATFORM:=linux-x64 endif ifeq ($(PLATFORM), macos) +ifeq ($(PYVERSION), py311) PYPI_PLATFORM:=--platform macosx_10_10_x86_64 +else +PYPI_PLATFORM:=--platform macosx_10_13_x86_64 +endif BLENDER_PLATFORM:=macos-x64 endif @@ -291,7 +295,7 @@ ifeq ($(PLATFORM), macosm1) endif ifeq ($(PLATFORM), macos) prev_whl_name=$$(find build/bonsai/wheels/tzfpy-*.whl); \ - whl_name=$$(echo $$prev_whl_name | sed "s/macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2/macosx_10_9_x86_64/"); \ + whl_name=$$(echo $$prev_whl_name | sed -E "s/macosx_10_([0-9]+)_x86_64\.macosx_11_0_arm64\.macosx_10_\1_universal2/macosx_10_\1_x86_64/"); \ mv "$$prev_whl_name" "$$whl_name"; prev_whl_name=$$(find build/bonsai/wheels/greenlet-*.whl); \