Skip to content

Commit f4a4d46

Browse files
authored
Update libmpdec-related instructions (#1907)
1 parent c05d21d commit f4a4d46

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

getting-started/setup-building.rst

Lines changed: 8 additions & 14 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.
@@ -912,25 +915,16 @@ some of CPython's modules (for example, ``zlib``).
912915

913916
$ sudo port install pkgconfig openssl xz gdbm tk +quartz mpdecimal zstd
914917

915-
.. tab:: Python 3.13+
916-
917-
For Python 3.13 and newer::
918-
919-
$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
920-
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
921-
./configure --config-cache \
922-
--with-pydebug \
923-
--with-system-libmpdec
924-
925-
.. tab:: Python 3.11-3.12
918+
.. tab:: Python 3.11+
926919

927-
For Python 3.11 and 3.12::
920+
For Python 3.11 and newer::
928921

929922
$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
930923
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
931924
./configure --config-cache \
932925
--with-pydebug
933926

927+
934928
And finally, run ``make``::
935929

936930
$ make -s -j8

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)