File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ class macOSPythonBuilder : NixPythonBuilder {
32
32
Prepare system environment by installing dependencies and required packages.
33
33
#>
34
34
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
+ }
42
42
}
43
43
44
44
[void ] Configure() {
You can’t perform that action at this time.
0 commit comments