mirror of
https://github.com/actions/python-versions.git
synced 2025-12-15 23:36:44 +00:00
Update macos-python-builder.psm1
This commit is contained in:
@@ -32,11 +32,16 @@ class macOSPythonBuilder : NixPythonBuilder {
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
# Only for Python 3.7.17, install additional dependencies
|
# Only for Python 3.7.17, install additional dependencies
|
||||||
if ($this.Version -eq "3.7.17") {
|
if ($this.Version -eq "3.7.17") {
|
||||||
Write-Host "Installing additional dependencies for Python 3.7.17..."
|
Write-Host "Installing additional dependencies for Python 3.7.17..."
|
||||||
# Install necessary 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"
|
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() {
|
[void] Configure() {
|
||||||
|
|||||||
Reference in New Issue
Block a user