mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 04:37:09 +00:00
[macOS] Update Python installer script (#13157)
This commit is contained in:
@@ -11,9 +11,19 @@ echo "Installing Python Tooling"
|
|||||||
# Close Finder window
|
# Close Finder window
|
||||||
close_finder_window
|
close_finder_window
|
||||||
|
|
||||||
echo "Brew Installing Python 3"
|
# Installing latest Homebrew Python 3 to handle python3 and pip3 symlinks
|
||||||
brew_smart_install "python@3.12"
|
# 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"
|
echo "Installing pipx"
|
||||||
|
|
||||||
if is_Arm64; then
|
if is_Arm64; then
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Describe "Python3" {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
It "Python 3 is installed under /usr/local/bin" {
|
It "Python 3 is installed under /usr/local/bin" {
|
||||||
Get-ToolPath "python3" | Should -BeLike "/usr/local/bin*"
|
Get-ToolPath "python3" | Should -BeLike "/usr/local/bin/*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -222,6 +222,9 @@
|
|||||||
"fastlane"
|
"fastlane"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"python": {
|
||||||
|
"default": "3.13"
|
||||||
|
},
|
||||||
"toolcache": [
|
"toolcache": [
|
||||||
{
|
{
|
||||||
"name": "Python",
|
"name": "Python",
|
||||||
|
|||||||
@@ -226,6 +226,9 @@
|
|||||||
"fastlane"
|
"fastlane"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"python": {
|
||||||
|
"default": "3.13"
|
||||||
|
},
|
||||||
"toolcache": [
|
"toolcache": [
|
||||||
{
|
{
|
||||||
"name": "Python",
|
"name": "Python",
|
||||||
|
|||||||
@@ -130,6 +130,9 @@
|
|||||||
"fastlane"
|
"fastlane"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"python": {
|
||||||
|
"default": "3.13"
|
||||||
|
},
|
||||||
"toolcache": [
|
"toolcache": [
|
||||||
{
|
{
|
||||||
"name": "Python",
|
"name": "Python",
|
||||||
|
|||||||
Reference in New Issue
Block a user