From c0cdd7380edf434b2743deedafd32ed331e975f1 Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Wed, 27 Nov 2024 18:46:34 +0530 Subject: [PATCH] Update macos-python-builder.psm1 --- builders/macos-python-builder.psm1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/builders/macos-python-builder.psm1 b/builders/macos-python-builder.psm1 index 984df81..9c525c7 100644 --- a/builders/macos-python-builder.psm1 +++ b/builders/macos-python-builder.psm1 @@ -31,15 +31,20 @@ class macOSPythonBuilder : NixPythonBuilder { .SYNOPSIS 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) if (-not (Test-Path "/usr/local/bin/brew")) { Write-Host "Homebrew not found. Installing Homebrew..." Invoke-Expression -Command "/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"" + # Once Homebrew is installed, install the dependencies + Write-Host "Installing dependencies: bzip2, readline, ncurses..." + Execute-Command -Command "brew install bzip2 readline ncurses" + } else { Write-Host "Homebrew is already installed." } } + } [void] Configure() { <#