diff --git a/images/macos/provision/core/python.sh b/images/macos/provision/core/python.sh index 287070b1b..be801340b 100755 --- a/images/macos/provision/core/python.sh +++ b/images/macos/provision/core/python.sh @@ -7,7 +7,18 @@ if is_Monterey || is_BigSur; then echo "Install latest Python 2" Python2Url="https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg" download_with_retries $Python2Url "/tmp" "python2.pkg" - sudo installer -pkg /tmp/python2.pkg -target / + + sudo installer -showChoiceChangesXML -pkg /tmp/python2.pkg -target / > /tmp/python2_choices.xml + + # To avoid symlink conflicts, remove tools installation in /usr/local/bin using installer choices + xmllint --shell /tmp/python2_choices.xml <