[issue36210] ncurses versus cursus integration - platform differences and defaults

Michael Felt report at bugs.python.org
Wed Mar 6 08:04:38 EST 2019


New submission from Michael Felt <aixtools at felt.demon.nl>:

Only marking Python3.8, but this is a historical issue I have ignored as long as possible.

There are many - ancient and recent issues open around the extension module _curses - and over the years it appears many assumptions have come into the code (such as configure.ac that says CPP needs to be expended with /usr/include/ncursesw, but not /usr/include/ncurses (which is what the ncurses project uses).

Further, Pyhton3 assumes that ncurses is the better solution, so if it can find a libncurses library that must be the best approach.

While ncurses might, all other things being equal, be a preferred library - it does not mean it is the best for all platforms.

On AIX - the assumptions made (at least where the include files are) tends to make it impossible to build the _cursesmodule in any form when a third-party ncurses is installed.

When ncurses is not installed _curses builds fine and _curses_panel is skipped.

I propose that "setup.py" - on AIX - specifies libcurses.a rather than libncurses - as the default.

----------
components: Extension Modules
messages: 337298
nosy: Michael.Felt
priority: normal
severity: normal
status: open
title: ncurses versus cursus integration - platform differences and defaults
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36210>
_______________________________________


More information about the Python-bugs-list mailing list