From 5b63b00e986121535ffe5c571162b93c64f3a81f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 13 Nov 2024 15:27:31 +0500 Subject: [PATCH] Workaround for Blender 4.3 #5743 --- src/bonsai/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bonsai/Makefile b/src/bonsai/Makefile index 291fe95b1d..aafff82b3a 100644 --- a/src/bonsai/Makefile +++ b/src/bonsai/Makefile @@ -317,6 +317,12 @@ endif exit 1; \ fi + # Temporary workaround for Blender not handling non-3.11 wheels #5743. + # Use '-n' as on macos x86-64 doesn't have a binary wheel and it autoincludes 'cp311'. + prev_whl_name=$$(find build/bonsai/wheels/tzfpy-*.whl); \ + whl_name=$$(echo $$prev_whl_name | sed "s/-cp39-/-cp$(PYNUMBER)-/"); \ + mv -n "$$prev_whl_name" "$$whl_name"; + ifneq ($(PLATFORM), linux) # Safeguard: in case one of `pip download` will break, # it will produce a linux wheel for non-linux build (our github action machine is using linux).