Skip to content

gh-136687: allow manually excluding ncurses from the build #136696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Switch option to "--disable-curses", as this is better considered ski…
…pping

building the python curses module as opposed to not using the system ncurses
library.

Remove mistakenly repeated test modules section.

Document configure option.
  • Loading branch information
duaneg committed Jul 20, 2025
commit 0618e0528c131ecdcf3df36e6f708852dcf66ac7
8 changes: 8 additions & 0 deletions Doc/using/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,14 @@ Options for third-party dependencies
C compiler and linker flags for ``libzlib``, used by :mod:`gzip` module,
overriding ``pkg-config``.

.. option:: --disable-curses

Do not build nor install the :mod:`curses` module regardless of whether the
``libncurses`` library is present on the host system (built and installed by
default if ``libncurses`` is present).

.. versionadded:: 3.15


WebAssembly Options
-------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Add ./configure option to manually exclude ``ncurses`` from the build.
Add :option:`--disable-curses` option to :file:`configure` to manually exclude
the :mod:`curses` module from the build.
42 changes: 10 additions & 32 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 5 additions & 13 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6838,19 +6838,11 @@ dnl have_panel=[no, yes]
have_curses=no
have_panel=no

AC_ARG_ENABLE([test-modules],
[AS_HELP_STRING([--disable-test-modules], [don't build nor install test modules])], [
AS_VAR_IF([enable_test_modules], [yes], [TEST_MODULES=yes], [TEST_MODULES=no])
], [TEST_MODULES=yes])
AC_MSG_RESULT([$TEST_MODULES])
AC_SUBST([TEST_MODULES])


AC_MSG_CHECKING([for --disable-ncurses])
AC_ARG_ENABLE([ncurses], [AS_HELP_STRING(
[--disable-ncurses],
[disable linking ncurses (default is no)])], [
AS_VAR_IF([enable_ncurses], [yes], [Py_CHECK_NCURSES=yes], [Py_CHECK_NCURSES=no])
AC_MSG_CHECKING([for --disable-curses])
AC_ARG_ENABLE([curses], [AS_HELP_STRING(
[--disable-curses],
[disable building curses module (default is no)])], [
AS_VAR_IF([enable_curses], [yes], [Py_CHECK_NCURSES=yes], [Py_CHECK_NCURSES=no])
], [Py_CHECK_NCURSES=yes])
AC_MSG_RESULT([$Py_CHECK_NCURSES])

Expand Down
Loading
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