mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
bonsai makefile - use new option for old no-clobber behaviour
Apparently (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62572) coreutils have changed `mv -n` to throw an error now instead of working silently, therefore our build was failing on Mac when Github Action switched from Ubuntu 22 to 24. `--update=none` seems to restore the old behaviour.
This commit is contained in:
+1
-6
@@ -330,12 +330,7 @@ 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)-/"); \
|
||||
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
|
||||
mv --update=none "$$prev_whl_name" "$$whl_name";
|
||||
|
||||
ifneq ($(PLATFORM), linux)
|
||||
# Safeguard: in case one of `pip download` will break,
|
||||
|
||||
Reference in New Issue
Block a user