8000 Update macos-python-builder.psm1 · actions/python-versions@dbeaa2d · GitHub
[go: up one dir, main page]

Skip to content

Commit dbeaa2d

Browse files
Update macos-python-builder.psm1
1 parent 771cbab commit dbeaa2d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

builders/macos-python-builder.psm1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ class macOSPythonBuilder : NixPythonBuilder {
3232
Prepare system environment by installing dependencies and required packages.
3333
#>
3434

35-
if ($this.Version -eq "3.7.17") {
36-
# We have preinstalled ncurses and readLine on the hoster runners. But we need to install bzip2 for
37-
# setting up an environemnt
38-
# If we get any issues realted to ncurses or readline we can try to run this command
39-
# brew install ncurses readline
40-
Execute-Command -Command "brew install bzip2"
41-
}
35+
# Ensure Homebrew is installed (in case it's not already available)
36+
if (-not (Test-Path "/usr/local/bin/brew")) {
37+
Write-Host "Homebrew not found. Installing Homebrew..."
38+
Invoke-Expression -Command "/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
39+
} else {
40+
Write-Host "Homebrew is already installed."
41+
}
4242
}
4343

4444
[void] Configure() {

0 commit comments

Comments
 (0)
0