Fedora Account System
Red Hat Associate
Red Hat Customer
openscap fails to build in Rawhide. Traceback (most recent call last): File "<string>", line 1, in <module> from distutils.sysconfig import get_python_lib; print(get_python_lib(True, prefix='/usr')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/06927767-openscap/ For all our attempts to build openscap with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/openscap/ 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/openscap The first failed build is https://koschei.fedoraproject.org/build/17075239 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
Thank you Miro ... I will add that.
rebuilt in rawhide with explicit build dependency to python3-setuptools. Using the python3-packaging as suggested (used in glib2) was not enough.
For the record, the glib2 commit was linked as a cause of the build failure, not as a suggested fix. The package used to build successfully because gliub2-devel brought python3-setuptools into the buildroot of this package. Sorry for the confusion.