python-mplcairo fails to build with Python 3.13.0a2. + export PYTHONPATH=/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages PYTHONDONTWRITEBYTECODE=1 + PYTHONPATH=/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/python3 -c 'import mplcairo.base' Traceback (most recent call last): File "<string>", line 1, in <module> import mplcairo.base File "/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages/mplcairo/__init__.py", line 27, in <module> from . import _mplcairo ImportError: cannot import name '_mplcairo' from partially initialized module 'mplcairo' (most likely due to a circular import) (/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages/mplcairo/__init__.py) https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06784089-python-mplcairo/ For all our attempts to build python-mplcairo with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-mplcairo/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This doesn't have anything to do with Python 3.13, but with the latest wheel, and there is a fix upstream for it. However, I can't backport that yet, as texlive is currently broken.
https://github.com/matplotlib/mplcairo/commit/e85ebb2115f617e20c0269047f9b50ac050f5eb9