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 1 commit
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
2 changes: 1 addition & 1 deletion getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Alternatively, you can install this package from https://deb.sury.org/.
Alternatively, you can install this package from https://deb.sury.org.

I'm not familiar with this source so will leave for someone else to review if we should recommend it.

But generally, do I get this right: For Debian 12 and Ubuntu 24.04, if users don't use a third-party package source, they'll use the fallback to the bundled copy. But we'll remove that bundled copy in Python 3.16 (branch opens May 2026, final release October 2027).

However, Ubuntu 24.04 is EOL in 2029 (and Debian 12 in June 2026). What is our recommendation to users of Ubuntu 24.04? (And later versions of Ubuntu and Debian)

And also: if the bundled fallback is already deprecated and going away in 3.16, should we be encouraging everyone to start using the replacement (an external copy) already, to help identify potential issues ahead of 3.16?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not familiar with this source so will leave for someone else to review if we should recommend it.

We use that in the CPython CI.

What is our recommendation to users of Ubuntu 24.04?

Em? Use https://deb.sury.org.

And later versions of Ubuntu and Debian

Later versions come with the libmpdec-dev.

should we be encouraging everyone to start using the replacement (an external copy) already

Yes, probably this should be rephrased.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this was updated.


.. tab:: macOS

Expand Down Expand Up @@ -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 \
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