the brp-python-bytecompile script on RHEL7 has a bug that's affecting the newly added Python 3 packages (see blocked bugs).
I've just noticed that the brp-python-bytecompile script contains an old bug:
When I'm building a Python 3 package, brp-python-bytecompile first checks if the default python interpreter (/usr/bin/python) in installed, and because it isn't it quits. However, it does not need the default python to compile the /usr/lib/python3.6/ files.
The bug was fixed upstream 2 years ago:
I'll open a PR.
We're adding the new Python 3 packages in RHEL7.7, so it would be great if this could be fixed in the same release as well. If you agree, I'll ask the PM for an ack, and the QE too if you tell me who's the right person.
Pull Request: https://src.osci.redhat.com/rpms/rpm/pull-request/10
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.