Repository navigation
Fix the libmpdec note for Python 3.15 in the build instructions - #1951
Open
pylaterreur wants to merge 1 commit into
Open
pylaterreur wants to merge 1 commit into
pylaterreur wants to merge 1 commit into
Conversation
Python 3.15 removed the implicit fallback to the bundled copy of libmpdec (gh-115119). Without libmpdec-dev, a default 3.15 build does not use the bundled copy: configure warns, _decimal is not built, and the decimal module uses its pure-Python implementation. The bundled copy is only used with --without-system-libmpdec, as the configure documentation for 3.15 says. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GwUvhmzgfkiZ6vo4uGyesN
Documentation build overview
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Debian/Ubuntu note in the build instructions says that a build of Python 3.15 and older uses a bundled libmpdec when
libmpdec-devis missing. That is wrong for 3.15: it no longer falls back to the bundled copy implicitly (gh-115119). Withoutlibmpdec-dev,configurewarns,_decimalisn't built, anddecimaluses its pure-Python implementation. The bundled copy is only used with--without-system-libmpdec, as the 3.15configuredocumentation says. I saw this on GitHub's Ubuntu 3.15.2 build, which has no C_decimal.This changes the note to: 3.14 and older use the bundled copy; 3.15 uses it only with
--without-system-libmpdec; otherwise, and for 3.16 and newer,decimalfalls back to the pure-Python implementation.AI assistance (Claude Code) was used to find the cause and draft this text and the change; I checked it against the 3.15 sources and a 3.15.0 build.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GwUvhmzgfkiZ6vo4uGyesN