This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yan12125
Recipients Alex.Willmer, doko, masamoto, serhiy.storchaka, vstinner, xdegaye, yan12125
Date 2016-12-10.03:41:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481341283.91.0.912748022555.issue28190@psf.upfronthosting.co.za>
In-reply-to
Content
> The only change that is needed here is to not include /usr/include/ncursesw in setup.py when cross compiling

No. Lots of codes in _cursesmodule.c need to know whether it's ncursesw, ncurses, or SysV's curses. For example: (segments below are from unpatched codebase)

#if !defined(__hpux) || defined(HAVE_NCURSES_H)
    /* On HP/UX 11, these are of type cchar_t, which is not an
       integral type. If this is a problem on more platforms, a
       configure test should be added to determine whether ACS_S1
       is of integral type. */
    SetDictInt("ACS_S1",            (ACS_S1));
    SetDictInt("ACS_S9",            (ACS_S9));
    SetDictInt("ACS_DIAMOND",       (ACS_DIAMOND));
    SetDictInt("ACS_CKBOARD",       (ACS_CKBOARD));
    SetDictInt("ACS_DEGREE",        (ACS_DEGREE));
    SetDictInt("ACS_PLMINUS",       (ACS_PLMINUS));
    SetDictInt("ACS_BULLET",        (ACS_BULLET));
    SetDictInt("ACS_LARROW",        (ACS_LARROW));
    SetDictInt("ACS_RARROW",        (ACS_RARROW));
    SetDictInt("ACS_DARROW",        (ACS_DARROW));
    SetDictInt("ACS_UARROW",        (ACS_UARROW));
    SetDictInt("ACS_BOARD",         (ACS_BOARD));
    SetDictInt("ACS_LANTERN",       (ACS_LANTERN));
    SetDictInt("ACS_BLOCK",         (ACS_BLOCK));
#endif

And

static int
PyCurses_ConvertToCchar_t(PyCursesWindowObject *win, PyObject *obj,
                          chtype *ch
#ifdef HAVE_NCURSESW
                          , wchar_t *wch
#endif
                          )

So detecting ncurses's actual include path is necessary.
History
Date User Action Args
2016-12-10 03:41:24yan12125setrecipients: + yan12125, doko, vstinner, xdegaye, serhiy.storchaka, masamoto, Alex.Willmer
2016-12-10 03:41:23yan12125setmessageid: <1481341283.91.0.912748022555.issue28190@psf.upfronthosting.co.za>
2016-12-10 03:41:23yan12125linkissue28190 messages
2016-12-10 03:41:23yan12125create