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

@@ -36,6 +36,11 @@ class macOSPythonBuilder : NixPythonBuilder {
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"
}
}