diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d37eb4447ad11af..7cd3537ec270a54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -229,6 +229,7 @@ jobs: --config-cache \ --with-pydebug \ --prefix=/opt/python-dev \ + --with-readline=apple \ --with-openssl="$(brew --prefix openssl@3.0)" - name: Build CPython run: make -j4 diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index 6279b0efbf93210..e09a1805c359a5e 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -515,13 +515,17 @@ Libraries options .. versionadded:: 3.3 -.. cmdoption:: --with-readline=editline +.. cmdoption:: --with-readline=readline|editline|apple - Use ``editline`` library for backend of the :mod:`readline` module. + Desinate a backend library of the :mod:`readline` module. - Define the ``WITH_EDITLINE`` macro. + readline: default backend + editline: Define the ``WITH_EDITLINE`` macro. + apple: Define the ``WITH_APPLE_READLINE`` macro. .. versionadded:: 3.10 + .. versionchanged: 3.13 + ``apple`` for macOS specific backend library option is added. .. cmdoption:: --without-readline diff --git a/configure b/configure index f022efb42c019f7..cfa9cdf5b6d9e98 100755 --- a/configure +++ b/configure @@ -23765,6 +23765,8 @@ then : with_readline=edit ;; #( yes|readline) : with_readline=readline ;; #( + apple) : + with_readline=apple ;; #( no) : ;; #( *) : @@ -23773,27 +23775,23 @@ then : esac else $as_nop - with_readline=default + with_readline=readline fi -if test "x$with_readline" = xdefault +if test "x$with_readline" = xapple then : case $ac_sys_system/$ac_sys_release in #( Darwin/*) : printf "%s\n" "#define WITH_APPLE_READLINE 1" >>confdefs.h - ;; #( + with_readline=readline ;; #( *) : ;; esac fi -if test "x$with_readline" = xdefault -then : - with_readline=readline -fi if test "x$with_readline" = xreadline then :