[macOS] Update Python installer script (#13157)

This commit is contained in:
Erik Bershel
2025-10-10 17:19:38 +02:00
committed by GitHub
parent fdfa28c5be
commit ed18dfab03
5 changed files with 22 additions and 3 deletions

View File

@@ -11,9 +11,19 @@ echo "Installing Python Tooling"
# Close Finder window
close_finder_window
echo "Brew Installing Python 3"
brew_smart_install "python@3.12"
# Installing latest Homebrew Python 3 to handle python3 and pip3 symlinks
# When latest Python3 is installed as a dependency for other packages
# it does not create /usr/local/bin/python3 and /usr/local/bin/pip3
echo "Brew Installing default Python 3"
brew_smart_install "python"
# Install specific Python version
# Update symlinks for python3 and pip3 to point to the specific version
toolsetVersion=$(get_toolset_value '.python.default')
echo "Installing Python $toolsetVersion"
brew_smart_install "python@$toolsetVersion"
# Pipx has its own Python dependency
echo "Installing pipx"
if is_Arm64; then