update comment

This commit is contained in:
Dmitry Shibanov 2023-06-23 14:02:50 +02:00
parent aad305a1bc
commit 86815da2c6

View File

@ -32,8 +32,13 @@ class macOSPythonBuilder : NixPythonBuilder {
Prepare system environment by installing dependencies and required packages.
#>
# brew install ncurses readline # for python 3.7.17
Execute-Command -Command "brew install bzip2"
if ($this.Version -eq "3.7.17") {
# We have preinstalled ncurses and readLine on the hoster runners. But we need to install bzip2 for
# setting up an environemnt
# If we get any issues realted to ncurses or readline we can try to run this command
# brew install ncurses readline
Execute-Command -Command "brew install bzip2"
}
}
[void] Configure() {
@ -79,7 +84,6 @@ class macOSPythonBuilder : NixPythonBuilder {
$configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
}
if ($this.Version -eq "3.7.17") {
$env:LDFLAGS += " -L$(brew --prefix bzip2)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib"
$env:CFLAGS += " -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(brew --prefix ncurses)/include"