gh-115119: Defer removal of bundled libmpdec to 3.16 (#133997)

Rename libmpdecimal -> libmpdec

see https://www.bytereef.org/mpdecimal/doc/libmpdec/index.html
This commit is contained in:
Sergey B Kirpichev 2025-07-02 12:20:00 +03:00 committed by GitHub
parent b3308973e3
commit b19c9da401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 17 additions and 8 deletions

View file

@ -1,7 +1,6 @@
Pending removal in Python 3.15 Pending removal in Python 3.15
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* The bundled copy of ``libmpdecimal``.
* The :c:func:`!PyImport_ImportModuleNoBlock`: * The :c:func:`!PyImport_ImportModuleNoBlock`:
Use :c:func:`PyImport_ImportModule` instead. Use :c:func:`PyImport_ImportModule` instead.
* :c:func:`PyWeakref_GetObject` and :c:func:`PyWeakref_GET_OBJECT`: * :c:func:`PyWeakref_GetObject` and :c:func:`PyWeakref_GET_OBJECT`:

View file

@ -0,0 +1,4 @@
Pending removal in Python 3.16
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* The bundled copy of ``libmpdec``.

View file

@ -2233,6 +2233,8 @@ Deprecated
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst .. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
.. include:: ../deprecations/c-api-pending-removal-in-3.16.rst
.. include:: ../deprecations/c-api-pending-removal-in-future.rst .. include:: ../deprecations/c-api-pending-removal-in-future.rst
Removed Removed

View file

@ -2546,6 +2546,8 @@ Deprecated C APIs
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst .. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
.. include:: ../deprecations/c-api-pending-removal-in-3.16.rst
.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst .. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
.. include:: ../deprecations/c-api-pending-removal-in-future.rst .. include:: ../deprecations/c-api-pending-removal-in-future.rst
@ -2592,7 +2594,7 @@ Build Changes
* The :file:`configure` option :option:`--with-system-libmpdec` * The :file:`configure` option :option:`--with-system-libmpdec`
now defaults to ``yes``. now defaults to ``yes``.
The bundled copy of ``libmpdecimal`` will be removed in Python 3.15. The bundled copy of ``libmpdec`` will be removed in Python 3.16.
* Python built with :file:`configure` :option:`--with-trace-refs` * Python built with :file:`configure` :option:`--with-trace-refs`
(tracing references) is now ABI compatible with the Python release build (tracing references) is now ABI compatible with the Python release build

View file

@ -3053,6 +3053,8 @@ Deprecated
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst .. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
.. include:: ../deprecations/c-api-pending-removal-in-3.16.rst
.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst .. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
.. include:: ../deprecations/c-api-pending-removal-in-future.rst .. include:: ../deprecations/c-api-pending-removal-in-future.rst

8
configure generated vendored
View file

@ -33180,13 +33180,13 @@ printf "%s\n" "$py_cv_module__decimal" >&6; }
if test "x$with_system_libmpdec" = xno if test "x$with_system_libmpdec" = xno
then : then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the bundled copy of libmpdecimal is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the bundled copy of libmpdec is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&5
printf "%s\n" "$as_me: WARNING: the bundled copy of libmpdecimal is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&2;} printf "%s\n" "$as_me: WARNING: the bundled copy of libmpdec is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&2;}
fi fi
if test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no" if test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no"
then : then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no system libmpdecimal found; falling back to pure-Python version for the decimal module" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module" >&5
printf "%s\n" "$as_me: WARNING: no system libmpdecimal found; falling back to pure-Python version for the decimal module" >&2;} printf "%s\n" "$as_me: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module" >&2;}
fi fi

View file

@ -8129,11 +8129,11 @@ PY_STDLIB_MOD([_decimal],
AS_VAR_IF([with_system_libmpdec], [no], AS_VAR_IF([with_system_libmpdec], [no],
[AC_MSG_WARN([m4_normalize([ [AC_MSG_WARN([m4_normalize([
the bundled copy of libmpdecimal is scheduled for removal in Python 3.16; the bundled copy of libmpdec is scheduled for removal in Python 3.16;
consider using a system installed mpdecimal library.])])]) consider using a system installed mpdecimal library.])])])
AS_IF([test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no"], AS_IF([test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no"],
[AC_MSG_WARN([m4_normalize([ [AC_MSG_WARN([m4_normalize([
no system libmpdecimal found; falling back to pure-Python version no system libmpdec found; falling back to pure-Python version
for the decimal module])])]) for the decimal module])])])
PY_STDLIB_MOD([_dbm], PY_STDLIB_MOD([_dbm],