8000 Update libmpdec-related instructions by skirpichev · Pull Request #1598 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Update libmpdec-related instructions #1598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +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.
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 <https://www.bytereef.org/mpdecimal/doc/libmpdec/>`_ library.
Either built it from sources or install this package from
https://deb.sury.org.

.. tab:: macOS

Expand Down Expand Up @@ -823,7 +827,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 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed builds and tests pass on macOS without this for 3.13/3.14/main.

--with-openssl="$(brew --prefix openssl@3)"

.. tab:: Python 3.11-3.12
Expand Down
Loading
0