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

Conversation

skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Jul 2, 2025

  • drop --with-system-libmpdec on macOS (default to yes since 3.13)
  • recommend deb.sury.org for Debian 12 and Ubuntu 24.04

📚 Documentation preview 📚: https://cpython-devguide--1598.org.readthedocs.build/

* drop --with-system-libmpdec on macOS (default to yes since 3.13)
* recommend deb.sury.org for Debian 12 and Ubuntu 24.04
@@ -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.

@@ -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.

skirpichev and others added 2 commits July 6, 2025 03:38
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@skirpichev skirpichev requested a review from hugovk July 6, 2025 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants