[macOS] Update Python script and Python3 symlink behaviour (#13174)

This commit is contained in:
Erik Bershel
2025-10-16 12:34:30 +02:00
committed by GitHub
parent 3ae94865d0
commit 2f702974cc
6 changed files with 16 additions and 19 deletions

View File

@@ -12,16 +12,8 @@ echo "Installing Python Tooling"
close_finder_window
# 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"
brew_smart_install "python3"
# Pipx has its own Python dependency
echo "Installing pipx"