Hide Forgot
Python bundles libmpdec: https://github.com/python/cpython/tree/master/Modules/_decimal/libmpdec libmpdec is mpdecimal in Fedora (possibly): https://src.fedoraproject.org/rpms/mpdecimal Let's try to unbandle it and if it fails, at least provide bundled(libmpdec) or bundled(mpdecimal). (This also applies for older Pythons.)
Some very draft testing by trying to build by removing the folder: /home/Harris/dev/cpython/Modules/_decimal/_decimal.c:32:10: fatal error: mpdecimal.h: No such file or directory 32 | #include "mpdecimal.h" | ^~~~~~~~~~~~~ compilation terminated. After installing mpdecimal-devel: building '_decimal' extension gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DCONFIG_64=1 -DASM=1 -I/home/Harris/dev/cpython/Modules/_decimal/libmpdec -I./Include -I. -I/usr/local/include -I/home/Harris/dev/cpython/Include -I/home/Harris/dev/cpython -c /home/Harris/dev/cpython/Modules/_decimal/_decimal.c -o build/temp.linux-x86_64-3.10/home/Harris/dev/cpython/Modules/_decimal/_decimal.o gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DCONFIG_64=1 -DASM=1 -I/home/Harris/dev/cpython/Modules/_decimal/libmpdec -I./Include -I. -I/usr/local/include -I/home/Harris/dev/cpython/Include -I/home/Harris/dev/cpython -c _decimal/libmpdec/basearith.c -o build/temp.linux-x86_64-3.10/_decimal/libmpdec/basearith.o gcc: error: _decimal/libmpdec/basearith.c: No such file or directory gcc: fatal error: no input files compilation terminated.
Try --with-system-libmpdec
(In reply to Miro Hrončok from comment #2) > Try --with-system-libmpdec Well I don't know why I didn't think of checking the configure script. The option exists and everything builds fine.
Note by Victor: When we ubunudle, we should switch the Fedora buildbots to do the same. We should also talk to the mpdecimal Fedora maintainer about our plan.
PR: https://src.fedoraproject.org/rpms/python3.10/pull-request/40
This issue affects only python3, python2 doesn't bundle libmpdec.
All Python 3 packages < 3.10 now provide bundled(mpdecimal) and bundled(libmpdec) in rawhide. Backports exist but not all have been built. Python 3.10 (python3.10-3.10.0~b1-2 and further) uses the system mpdecimal. Me and cstratak now co-maintain mpdecimal in Fedora. On rawhide, there are CI tests in mpdecimal that run Python's test for the decimal module: https://src.fedoraproject.org/rpms/mpdecimal/blob/rawhide/f/tests/tests_python.yml They use the "main" Python version, which is 3.9 for now, so the tests are kinda useless at this moment, but we plan to update to Python 3.10 really soon.
FEDORA-2021-0ea585e459 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-0ea585e459
FEDORA-2021-66690837c0 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-66690837c0
FEDORA-2021-0ea585e459 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-0ea585e459` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-0ea585e459 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-66690837c0 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-66690837c0` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-66690837c0 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-40c604baa0 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-40c604baa0` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-40c604baa0 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-7c9181adff has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7c9181adff` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7c9181adff See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-40c604baa0 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-7c9181adff has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-94a79eab1a has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-94a79eab1a
FEDORA-2022-94a79eab1a has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.