mirror of
https://github.com/actions/python-versions.git
synced 2025-12-12 21:48:15 +00:00
Update macos-python-builder.psm1
This commit is contained in:
@@ -32,13 +32,13 @@ class macOSPythonBuilder : NixPythonBuilder {
|
|||||||
Prepare system environment by installing dependencies and required packages.
|
Prepare system environment by installing dependencies and required packages.
|
||||||
#>
|
#>
|
||||||
|
|
||||||
if ($this.Version -eq "3.7.17") {
|
# Ensure Homebrew is installed (in case it's not already available)
|
||||||
# We have preinstalled ncurses and readLine on the hoster runners. But we need to install bzip2 for
|
if (-not (Test-Path "/usr/local/bin/brew")) {
|
||||||
# setting up an environemnt
|
Write-Host "Homebrew not found. Installing Homebrew..."
|
||||||
# If we get any issues realted to ncurses or readline we can try to run this command
|
Invoke-Expression -Command "/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
|
||||||
# brew install ncurses readline
|
} else {
|
||||||
Execute-Command -Command "brew install bzip2"
|
Write-Host "Homebrew is already installed."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[void] Configure() {
|
[void] Configure() {
|
||||||
|
|||||||
Reference in New Issue
Block a user