]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152502: Detect optional curses functions with configure probes (GH-152504)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Jun 2026 12:02:12 +0000 (15:02 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 12:02:12 +0000 (12:02 +0000)
commit0635e55b47e306aa6cc0610105775849b0699e2c
treedacb3ec865d13e010e1904b39c1d60335606fa66
parent8ec36f14a552136d54072e3e5bb595ec1f4f0b5f
gh-152502: Detect optional curses functions with configure probes (GH-152504)

Some curses functions were called unconditionally or gated only by the
ncurses-specific NCURSES_EXT_FUNCS macro, which broke building the module
against other curses implementations (narrow ncurses, NetBSD curses) even
when they provided the function.  Detect each with a configure capability
probe and gate on HAVE_CURSES_*.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_curses.py
Misc/NEWS.d/next/Build/2026-06-28-16-17-55.gh-issue-152502.6SNqMg.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h
configure
configure.ac
pyconfig.h.in