Skip to content

Commit e925241

Browse files
gh-90005: Port readline and curses to PY_STDLIB_MOD (GH-94452)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
1 parent 50b9a77 commit e925241

File tree

6 files changed

+2015
-530
lines changed

6 files changed

+2015
-530
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Dependencies of :mod:`readline` and :mod:`curses` module are now detected in
2+
``configure`` script with ``pkg-config``. Only ``ncurses`` / ``ncursesw``
3+
are detected automatically. The old ``curses`` library is not configured
4+
automatically. Workaround for missing ``termcap`` or ``tinfo`` library
5+
has been removed.

Modules/Setup.stdlib.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
# gdbm module needs -lgdbm
7373
@MODULE__GDBM_TRUE@_gdbm _gdbmmodule.c
7474

75-
# needs -lreadline or -leditline, sometimes termcap, termlib, or tinfo
76-
#@MODULE_READLINE_TRUE@readline readline.c
75+
# needs -lreadline or -ledit, sometimes termcap, termlib, or tinfo
76+
@MODULE_READLINE_TRUE@readline readline.c
7777

7878
# hashing builtins, can be disabled with --without-builtin-hashlib-hashes
7979
@MODULE__MD5_TRUE@_md5 md5module.c
@@ -138,10 +138,10 @@
138138
# needs -lffi and -ldl
139139
@MODULE__CTYPES_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c @MODULE__CTYPES_MALLOC_CLOSURE@
140140

141-
# needs -lncurses, -lncursesw or -lcurses, sometimes -ltermcap
142-
#@MODULE__CURSES_TRUE@_curses _cursesmodule.c
143-
# needs -lncurses and -lpanel
144-
#@MODULE__CURSES_PANEL_TRUE@_curses_panel _curses_panel.c
141+
# needs -lncurses[w], sometimes -ltermcap/tinfo
142+
@MODULE__CURSES_TRUE@_curses _cursesmodule.c
143+
# needs -lncurses[w] and -lpanel[w]
144+
@MODULE__CURSES_PANEL_TRUE@_curses_panel _curses_panel.c
145145

146146
@MODULE__SQLITE3_TRUE@_sqlite3 _sqlite/blob.c _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c _sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c
147147

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy