Hi, see the deprecation notes for RHEL 7.5 :
Python 2 has been deprecated
Python 2 will be replaced with Python 3 in the next Red Hat Enterprise
Linux (RHEL) major release.
See the Conservative Python 3 Porting Guide  for information on how
to migrate large code bases to Python 3.
While this might have been obvious from the conditionals we have been
adding in some specfiles , this is AFAIK the first time this has
been publicly announced.
This is important for those who like to maintain a single spec for
everything. Previously, there have been messages on the devel list that
encouraged people to change the python3 conditional from "if fedora" to
"if fedora or rhel > 7" . Please make a note that it will not be that
simple, because you'll also need to add conditionals for python2, see
for example already mentioned  or .
(If the conditionals are getting too complicated, consider not using
them at all and maintain multiple branches of the specs instead.)
This is also important for everybody who still runs their code on Python
2. Please consider to migrate ASAP. The Conservative Python 3 Porting
Guide  is very helpful. (I'm looking mostly at Fedora infra and QA here.)
We (Red Hat Python Maint and Fedora Python SIG) are happy to help. If
you feel lost, talk to us. Also, this is a reminder that we intend to
orphan Python 2 from Fedora  and so far nobody volunteered to
Python 2 will go upstream EOL in 1.75 years .