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

Skip to content

Commit c0cdd73

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builders/macos-python-builder.psm1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@ class macOSPythonBuilder : NixPythonBuilder {
3131
.SYNOPSIS
3232
Prepare system environment by installing dependencies and required packages.
3333
#>
34-
34+
if ($this.Version -eq "3.7.17") {
3535
# Ensure Homebrew is installed (in case it's not already available)
3636
if (-not (Test-Path "/usr/local/bin/brew")) {
3737
Write-Host "Homebrew not found. Installing Homebrew..."
3838
Invoke-Expression -Command "/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
39+
# Once Homebrew is installed, install the dependencies
40+
Write-Host "Installing dependencies: bzip2, readline, ncurses..."
41+
Execute-Command -Command "brew install bzip2 readline ncurses"
42+
3943
} else {
4044
Write-Host "Homebrew is already installed."
4145
}
4246
}
47+
}
4348

4449
[void] Configure() {
4550
<#

0 commit comments

Comments
 (0)
0