Fedora Account System
Red Hat Associate
Red Hat Customer
system-config-printer fails to build in Rawhide. /usr/bin/python3 setup.py build Traceback (most recent call last): File "/builddir/build/BUILD/system-config-printer-1.5.18/setup.py", line 20, in <module> from distutils.core import setup ModuleNotFoundError: No module named 'distutils' The distutils package has been removed from the standard library of Python 3.12+ https://docs.python.org/3.12/whatsnew/3.12.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06924377-system-config-printer/ For all our attempts to build system-config-printer with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/system-config-printer/ 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.
Looking at https://koschei.fedoraproject.org/package/system-config-printer The first failed build is https://koschei.fedoraproject.org/build/17080861 It removed a transitive dependency on python3-setuptools, which was previously pulled in by some other build dependency. When python3-setuptools is installed, it has its own distutils module and it makes the package build.
FTR I belive this is the difference: https://src.fedoraproject.org/rpms/glib2/c/770dc4fc14abb429580937b7fad7157030dd7627?branch=rawhide
Hi Karolina and Miro, thank you for filing the issue! Shame on me, I had python3-setuptools commented out in SPEC file as result of debugging another python related FTBFS from the last year, where Miro fixed the build for me and I didn't realize I haven't put setuptools back... I'll fix it in a moment.
Or at least I would, if Fedora Kerberos was running... I'll try to build the fix asap.
Putting the package name back to Summary, it's easier to work with in the emails.
Built for rawhide https://bodhi.fedoraproject.org/updates/FEDORA-2024-8292d4eb73 .