def _package_overrides(pkgs, os):
"""
- Replaces some package names with their distro-specific equivalents
- (currently "python3-*" -> "python34-*" for CentOS)
+ Replaces some package names with their distro-specific equivalents.
+
+ CentOS/RHEL-7 is not fully migrated to python3 at the time of writing,
+ we are using EPEL7 for building python3 packages. and we use the rpm
+ macro of "python3_pkgversion" as the python3 version for which we build
+ python bindings. see https://src.fedoraproject.org/cgit/rpms/python-rpm-macros.git/commit/macros.python-srpm?h=epel7 for its latest definition.
+
+ (currently "python3-*" -> "python36-*" for CentOS)
:param pkgs: list of RPM package names
:param os: the teuthology.orchestra.opsys.OS object
for pkg in pkgs:
if is_rhel:
if pkg.startswith('python3-') or pkg == 'python3':
- pkg = pkg.replace('3', '34', 1)
+ pkg = pkg.replace('python3', 'python36', 1)
result.append(pkg)
return result