py-compile script incompatible with Python 3.12
The py-compile script from the autoconf version in RHEL 7 and RHEL 8 is incompatible with Python 3.12 due to its use of the imp module that was removed from Python 3.12. This script is part of the generated source tarball that is created by "make dist". I.e. if the source tarball is generated on RHEL 7 or RHEL 8, compilation fails from the source tarball on a system with Python 3.12. This currently results in broken nightlies on Fedora Rawhide.
Possible solutions:
- Generate the source tarball on a more recent system with a version of the py-compile script that works wiyh Python 3.12
- Rerun autotools as part of the build, thereby replacing the py-compile script in the source tarball.
- Build require python3-zombie-imp on Fedora Rawhide (hacky, and could potentially hide other problems).