Add several Python3 rules for RHEL/CentOS #20842
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These packages are all part of Fedora EPEL 7.
The RPM macro
python3_pkgversion
resolves to the package version number of the primary Python 3 version in each distribution. This is true in Fedora and EPEL. Currently,python3_pkgversion
resolves to3
on Fedora and36
in EPEL 7. It is likely that RHEL 8 will use a different Python 3 version, and since it will ship with the base OS,python3_pkgversion
will likely resolve to3
for that release.By using the macro, we can ensure that we're always getting packages for the default version of python 3, which has changed in the past, and also avoiding creating separate rules for EPEL 7 and 8.
The Fedora packages site doesn't do well for Python 3 EPEL packages, but here is the result of listing the resolved keys on CentOS 7, demonstrating that each package is available from the
epel
repository.