Skip to content

Conversation

@sobolevn
Copy link
Member

@sobolevnsobolevn commented Sep 30, 2023

These two functions are under #ifdef HAVE_NCURSESW macro:

#ifdefHAVE_NCURSESW/*[clinic input]_curses.unget_wch ch: object /Push ch so the next get_wch() will return it.[clinic start generated code]*/staticPyObject*_curses_unget_wch(PyObject*module, PyObject*ch) /*[clinic end generated code: output=1974c9fb01d37863 input=0d56dc65a46feebb]*/{wchar_twch; PyCursesInitialised; if (!PyCurses_ConvertToWchar_t(ch, &wch)) returnNULL; returnPyCursesCheckERR(unget_wch(wch), "unget_wch")} #endif

Which is set via configure:

iftest"$ac_sys_system"!="Darwin"; thendnlOnmacOS, thereisnoseparate /usr/lib/libncurseswnorlibpanelw. PKG_CHECK_MODULES([CURSES], [ncursesw], [ AC_DEFINE([HAVE_NCURSESW], [1]) have_curses=ncursesw ], [ WITH_SAVE_ENV([ AC_CHECK_LIB([ncursesw], [initscr], [ AC_DEFINE([HAVE_NCURSESW], [1]) have_curses=ncurseswCURSES_CFLAGS=${CURSES_CFLAGS-""} CURSES_LIBS=${CURSES_LIBS-"-lncursesw"} ]) ]) ]) fi

It says that macos is not supported anymore.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittausrittau merged commit 4c5d3e5 into mainSep 30, 2023
@srittausrittau deleted the py312-curses-macos branch September 30, 2023 09:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@sobolevn@srittau