Skip to content

Commit c5ffdad

Browse files
committed
macos: Remove old Python versions before installing new
Avoid trying to build against Python 2.7
1 parent 558f953 commit c5ffdad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/macpython-download-cache-and-build-module-wheels.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
brew update
77
brew install zstd aria2 gnu-tar doxygen
88
brew upgrade cmake
9-
aria2c -c --file-allocation=none -o ITKPythonBuilds-macosx.tar.zst -s 10 -x 10 https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.1.0}/ITKPythonBuilds-macosx.tar.zst
9+
aria2c -c --file-allocation=none -o ITKPythonBuilds-macosx.tar.zst -s 10 -x 10 https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.1.2}/ITKPythonBuilds-macosx.tar.zst
1010
unzstd ITKPythonBuilds-macosx.tar.zst -o ITKPythonBuilds-macosx.tar
1111
PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
1212
tar xf ITKPythonBuilds-macosx.tar --checkpoint=10000 --checkpoint-action=dot
1313
rm ITKPythonBuilds-macosx.tar
1414
sudo mkdir -p /Users/svc-dashboard/D/P && sudo chown $UID:$GID /Users/svc-dashboard/D/P && mv ITKPythonPackage /Users/svc-dashboard/D/P/
15+
sudo rm -rf /Library/Frameworks/Python.framework/Versions/*
1516
/Users/svc-dashboard/D/P/ITKPythonPackage/scripts/macpython-install-python.sh
1617
/Users/svc-dashboard/D/P/ITKPythonPackage/scripts/macpython-build-module-wheels.sh "$@"

0 commit comments

Comments
 (0)