Update macos-python-builder.psm1

This commit is contained in:
aparnajyothi-y
2024-11-29 16:17:14 +05:30
committed by GitHub
parent c47a267fd1
commit 3d18e531c2

View File

@@ -32,11 +32,16 @@ class macOSPythonBuilder : NixPythonBuilder {
#>
# Only for Python 3.7.17, install additional dependencies
if ($this.Version -eq "3.7.17") {
Write-Host "Installing additional dependencies for Python 3.7.17..."
# Install necessary dependencies for Python 3.7.17
Execute-Command -Command "brew install bzip2 zlib readline ncurses sqlite3 openssl@1.1"
}
if ($this.Version -eq "3.7.17") {
Write-Host "Installing additional dependencies for Python 3.7.17..."
# Install necessary dependencies for Python 3.7.17
Execute-Command -Command "brew install bzip2 zlib readline ncurses sqlite3 openssl@1.1"
# Ensure the environment variables for zlib are set correctly
$zlibPrefix = (brew --prefix zlib)
$env:LDFLAGS += " -L$($zlibPrefix)/lib"
$env:CFLAGS += " -I$($zlibPrefix)/include"
}
}
[void] Configure() {