From efede9eb037ec621b477cee3b2a5fa5f2722e13a Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 14 Jan 2025 00:13:58 +1100 Subject: [PATCH] No idea why Github actions is failing for MacOS. All code looks good to me. --- src/bonsai/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bonsai/Makefile b/src/bonsai/Makefile index 86da37a8ac..3a033987c0 100644 --- a/src/bonsai/Makefile +++ b/src/bonsai/Makefile @@ -330,7 +330,12 @@ endif # 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"; + echo "$$prev_whl_name $$whl_name"; \ + if [ "$$(realpath $$prev_whl_name)" = "$$(realpath $$whl_name)" ]; then \ + echo "Source and destination are the same file. Skipping move."; \ + else \ + mv -n "$$prev_whl_name" "$$whl_name"; \ + fi ifneq ($(PLATFORM), linux) # Safeguard: in case one of `pip download` will break,