Skip to content

Commit d036ce7

Browse files
and manual links
1 parent 5a451d6 commit d036ce7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

builders/macos-python-builder.psm1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ class macOSPythonBuilder : NixPythonBuilder {
7474

7575
if ($this.Version -gt "3.7.12") {
7676
$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'"
77-
}
77+
}
78+
79+
80+
# brew install ncurses readline
81+
if ($this.Version -gt "3.7.17") {
82+
$env:LDFLAGS += " -L$(brew --prefix bzip2)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib"
83+
$env:CFLAGS += " -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(brew --prefix ncurses)/include"
84+
}
7885
}
7986

8087
### Compile with support of loadable sqlite extensions. Unavailable for Python 2.*

tests/sources/python-modules.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,6 @@ def replace(lst, old, new):
248248
'dataclasses',
249249
])
250250

251-
if (sys.version_info.major, sys.version_info.minor, sys.version_info.micro) == (3, 7, 17):
252-
standard_library.remove('bz2')
253-
standard_library.remove('curses')
254-
standard_library.remove('readline')
255-
256251
# 'macpath' module has been removed from Python 3.8
257252
if sys.version_info > (3, 7):
258253
standard_library.remove('macpath')

0 commit comments

Comments
 (0)