From 3f00b21288535cf332a8b929ef5784eb0d6b2a32 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Wed, 2 Jul 2025 15:48:09 +0300 Subject: [PATCH 1/3] Update libmpdec-related instructions * drop --with-system-libmpdec on macOS (default to yes since 3.13) * recommend deb.sury.org for Debian 12 and Ubuntu 24.04 --- getting-started/setup-building.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 910808453..1b6929cff 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -783,6 +783,7 @@ some of CPython's modules (for example, ``zlib``). Note that Debian 12 and Ubuntu 24.04 do not have the ``libmpdec-dev`` package. You can safely remove it from the install list above and the Python build will use a bundled version. + Alternatively, you can install this package from https://deb.sury.org/. .. tab:: macOS @@ -823,7 +824,6 @@ some of CPython's modules (for example, ``zlib``). $ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \ ./configure --with-pydebug \ - --with-system-libmpdec \ --with-openssl="$(brew --prefix openssl@3)" .. tab:: Python 3.11-3.12 From 857fc7ca301533d4a1bbf79f184aa28725ceb845 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sun, 6 Jul 2025 03:38:46 +0300 Subject: [PATCH 2/3] Update getting-started/setup-building.rst Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- getting-started/setup-building.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 1b6929cff..9f284946f 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -783,7 +783,7 @@ some of CPython's modules (for example, ``zlib``). Note that Debian 12 and Ubuntu 24.04 do not have the ``libmpdec-dev`` package. You can safely remove it from the install list above and the Python build will use a bundled version. - Alternatively, you can install this package from https://deb.sury.org/. + Alternatively, you can install this package from https://deb.sury.org. .. tab:: macOS From 891b63682178c0f47739f45961e9d596bb438619 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sun, 6 Jul 2025 03:57:10 +0300 Subject: [PATCH 3/3] Recommend system libmpdec --- getting-started/setup-building.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 9f284946f..51c386ad7 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -781,9 +781,12 @@ some of CPython's modules (for example, ``zlib``). libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmpdec-dev libzstd-dev - Note that Debian 12 and Ubuntu 24.04 do not have the ``libmpdec-dev`` package. You can safely - remove it from the install list above and the Python build will use a bundled version. - Alternatively, you can install this package from https://deb.sury.org. + Note that Debian 12 and Ubuntu 24.04 do not have the ``libmpdec-dev`` + package. You can safely remove it from the install list above and the + Python build will use a bundled version. But we recommend using the system + `libmpdec `_ library. + Either built it from sources or install this package from + https://deb.sury.org. .. tab:: macOS