Skip to content

Commit a1ae1eb

Browse files
committed
Update libmpdec-related instructions
1 parent 8b8b1f2 commit a1ae1eb

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

getting-started/setup-building.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,11 @@ some of CPython's modules (for example, ``zlib``).
841841
inetutils-inetd
842842

843843
Note that Debian 12 and Ubuntu 24.04 do not have the ``libmpdec-dev``
844-
package. You can safely remove it from the install list above and the
845-
Python build will use a bundled version. But we recommend using the system
844+
package. You can remove it from the install list above: for Python 3.15
845+
and older, the build will use a bundled version; for Python 3.16 and
846+
newer, the bundled copy has been removed and the :mod:`decimal` module
847+
will fall back to its slower pure-Python implementation. We recommend
848+
using the system
846849
`libmpdec <https://www.bytereef.org/mpdecimal/doc/libmpdec/>`__ library.
847850
Either build it from sources or install this package from
848851
https://deb.sury.org.
@@ -919,8 +922,7 @@ some of CPython's modules (for example, ``zlib``).
919922
$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
920923
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
921924
./configure --config-cache \
922-
--with-pydebug \
923-
--with-system-libmpdec
925+
--with-pydebug
924926

925927
.. tab:: Python 3.11-3.12
926928

security/sbom.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ that the CPython project uses is `SPDX <https://spdx.github.io/spdx-spec/v2.3/>`
1010
which can be transformed into other formats if necessary by consumers.
1111

1212
There are multiple sources of third-party dependencies for CPython.
13-
Some are vendored into the source code of CPython itself (like ``mpdecimal``
14-
vendored at :cpy-file:`Modules/_decimal/libmpdec`) or they could be optionally pulled
13+
Some are vendored into the source code of CPython itself (like ``expat``
14+
vendored at :cpy-file:`Modules/expat`) or they could be optionally pulled
1515
in during builds like Windows using dependencies from the
1616
`python/cpython-source-deps <https://github.com/python/cpython-source-deps>`__
1717
repository.

0 commit comments

Comments
 (0)