Repository navigation
Libmpec-dev not available on debian 12 when building Python #119114
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancement
on May 17, 2024 I encountered the same issue. It looks like mpdecimal has been removed solely because dh-sphinxdoc was not happy with the pre-built HTML docs ...
https://groups.google.com/g/linux.debian.bugs.dist/c/IhDtdjrk7mE
The upstream mpdecimal changelog states that the Sphinx documentation is now in a separate package:
https://www.bytereef.org/mpdecimal/changelog.html
Debian should not have any reason not to reinstate the package, it should be trivial. I suggest to ask nicely on the Debian mailing lists and mention that mpdecimal will be assumed to be present in the CPython build process in the future.
Reacted by Erlend E. Aasland and Mike- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errordocsDocumentation in the Doc dirDocumentation in the Doc dirand removedtype-featureA feature request or enhancementA feature request or enhancementtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on May 17, 2024 Alright. Given I could build python3.12 even without installing that package, it looks not much necessary. I think issue can be closed
The devguide said that
mpdecimalis just an optional package for building with optional packages, so it is not required for building Python.But I think this is still an issue that needs to be fixed.
Reacted by Erlend E. Aasland and Mike- changed the title
[-]Libmpec-dev not available[/-][+]Libmpec-dev not available on debian 12 when building Python[/+]on May 17, 2024 Here's the Debian bug report log for the removal: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056785
Reacted by Erlend E. AaslandHere's the Debian bug report log for the removal: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056785
Reading that issue, it looks like the Debian developers are not going to respond there. Perhaps opening an issue against the Debian CPython package will get more attention.
Reacted by Erlend E. AaslandNote that it is still possible to use the bundled copy using
--without-system-libmpdec(IIRC; I'm on mobile). Perhaps we should mention that in the devguide. I'll open an issue on the devguide tracker. Moreover, opening an issue on the Debian tracker to get the libmpdecimal package reinstated sounds like a good idea; I also commented on their tracker, but I received no reply so far.FTR, a fallback to the bundled version is added in #119196.
Feature or enhancement
Proposal:
In this guide
https://devguide.python.org/getting-started/setup-building/#build-dependencies
it suggests lib-mpdec but its not available in debian 12? Perhaps its outdated package?
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response