From 0fcc0ef9492e66756d75ee1acafb2ae5d62aec07 Mon Sep 17 00:00:00 2001 From: Lucas Gandel Date: Thu, 6 Feb 2025 07:56:52 +0100 Subject: [PATCH] BUG: Do not move IPP if the directory already exists Fixes the following issue when building a module depending on another remote module: mv: rename ITKPythonPackage to /Users/svc-dashboard/D/P/ITKPythonPackage: Directory not empty --- scripts/macpython-download-cache-and-build-module-wheels.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/macpython-download-cache-and-build-module-wheels.sh b/scripts/macpython-download-cache-and-build-module-wheels.sh index 6b7773f7..dd220ebd 100755 --- a/scripts/macpython-download-cache-and-build-module-wheels.sh +++ b/scripts/macpython-download-cache-and-build-module-wheels.sh @@ -86,7 +86,10 @@ if [[ -n ${ITKPYTHONPACKAGE_TAG} ]]; then fi # Run build scripts -sudo mkdir -p /Users/svc-dashboard/D/P && sudo chown $UID:$GID /Users/svc-dashboard/D/P && mv ITKPythonPackage /Users/svc-dashboard/D/P/ +sudo mkdir -p /Users/svc-dashboard/D/P && sudo chown $UID:$GID /Users/svc-dashboard/D/P +if [[ ! -d /Users/svc-dashboard/D/P/ITKPythonPackage ]]; then + mv ITKPythonPackage /Users/svc-dashboard/D/P/ +fi # Optionally install baseline Python versions if [[ ! ${ITK_USE_LOCAL_PYTHON} ]]; then