mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +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'.
|
# 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); \
|
prev_whl_name=$$(find build/bonsai/wheels/tzfpy-*.whl); \
|
||||||
whl_name=$$(echo $$prev_whl_name | sed "s/-cp39-/-cp$(PYNUMBER)-/"); \
|
whl_name=$$(echo $$prev_whl_name | sed "s/-cp39-/-cp$(PYNUMBER)-/"); \
|
||||||
echo "$$prev_whl_name $$whl_name"; \
|
mv --update=none "$$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)
|
ifneq ($(PLATFORM), linux)
|
||||||
# Safeguard: in case one of `pip download` will break,
|
# Safeguard: in case one of `pip download` will break,
|
||||||
|
|||||||
Reference in New Issue
Block a user