Title: 3.15 images ship without _decimal (missing libmpdec-dev) · Issue #1136 · docker-library/python · GitHub
Open Graph Title: 3.15 images ship without _decimal (missing libmpdec-dev) · Issue #1136 · docker-library/python
X Title: 3.15 images ship without _decimal (missing libmpdec-dev) · Issue #1136 · docker-library/python
Description: CPython 3.15 removed the implicit fallback to its bundled copy of libmpdec (python/cpython#115119; see "Build changes" in What's New in Python 3.15). None of the Linux 3.15 Dockerfiles install libmpdec-dev (or mpdecimal-dev on Alpine), s...
Open Graph Description: CPython 3.15 removed the implicit fallback to its bundled copy of libmpdec (python/cpython#115119; see "Build changes" in What's New in Python 3.15). None of the Linux 3.15 Dockerfiles install libm...
X Description: CPython 3.15 removed the implicit fallback to its bundled copy of libmpdec (python/cpython#115119; see "Build changes" in What's New in Python 3.15). None of the Linux 3.15 Dockerfile...
Opengraph URL: https://github.com/docker-library/python/issues/1136
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3.15 images ship without _decimal (missing libmpdec-dev)","articleBody":"CPython 3.15 removed the implicit fallback to its bundled copy of libmpdec ([python/cpython#115119](https://github.com/python/cpython/issues/115119); see \"Build changes\" in What's New in Python 3.15). None of the Linux 3.15 Dockerfiles install `libmpdec-dev` (or `mpdecimal-dev` on Alpine), so `_decimal` is never built and `decimal` silently falls back to `_pydecimal`:\n\n```console\n$ docker run --rm python:3.15-slim python -c \"import _decimal\"\nModuleNotFoundError: Standard library module '_decimal' was not found\n$ docker run --rm python:3.15-slim python -c \"import decimal; print(decimal.__file__)\"\n/usr/local/lib/python3.15/_pydecimal.py\n```\n\nSimple Decimal arithmetic is roughly 16× slower than on `python:3.14-slim`. Anything Decimal-heavy feels it, such as database drivers that return NUMERIC columns as `Decimal`.\n\nAdding `libmpdec-dev` to the build dependencies should fix it on Debian (trixie ships mpdecimal 4.0.1). On Alpine the package is `mpdecimal-dev`. The slim variants' `ldd`-based runtime-library detection should keep `libmpdec4` automatically.\n","author":{"url":"https://github.com/epicserve","@type":"Person","name":"epicserve"},"datePublished":"2026-10-14T20:36:51Z","url":"https://github.com/docker-library/python/issues/1136"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a404ff59-d621-e9b6-1d0d-8d5385798c46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7B6:79CF9:3A096C:4D3DBE:6AFE9ABD |
| html-safe-nonce | dcb4d0966a01f670408a1d9dfa6540aeec77d0321e4245132ce6ca8119aa254b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0I2Ojc5Q0Y5OjNBMDk2Qzo0RDNEQkU6NkFGRTlBQkQiLCJ2aXNpdG9yX2lkIjoiNjQxMDk5Njg5NzgwNzQ2OTQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b49536eb4236361b3ea6fc87c89875ccf292f2347200329ea90137be205e301a |
| hovercard-subject-tag | issue:5855250929 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-library/python/1136/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8503a5dc1be1fbac79e7325db93458fb91059f5693d2811674f351982fe2f0cb/docker-library/python/issues/1136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8503a5dc1be1fbac79e7325db93458fb91059f5693d2811674f351982fe2f0cb/docker-library/python/issues/1136 |
| og:image:alt | CPython 3.15 removed the implicit fallback to its bundled copy of libmpdec (python/cpython#115119; see "Build changes" in What's New in Python 3.15). None of the Linux 3.15 Dockerfiles install libm... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | epicserve |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-library/python git https://github.com/docker-library/python.git |
| octolytics-dimension-user_id | 7739233 |
| octolytics-dimension-user_login | docker-library |
| octolytics-dimension-repository_id | 21054928 |
| octolytics-dimension-repository_nwo | docker-library/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21054928 |
| octolytics-dimension-repository_network_root_nwo | docker-library/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width