mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
[macOS] Update Python script and Python3 symlink behaviour (#13174)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user