Fix python3 version for rpm distros
pythonX.Y version is virtually provided since long[1], and
pythonXY-devel no longer provided in latest CentOS and Fedora
releases.
So switching to use pythonX.Y-devel as that will also pull pythonX.Y
as a dependency.
Additionally install pythonX.Y-pip as for rpm distros it don't install
pip via source.
[1] https://src.fedoraproject.org/rpms/python3/c/75005c20f68f3b4ceb734e876b37009c8c3b99f3
Change-Id: I990586cce876533c67e3da4c97d9e5995c762340
diff --git a/inc/python b/inc/python
index bd58905..cd90ac8 100644
--- a/inc/python
+++ b/inc/python
@@ -489,11 +489,7 @@
if is_ubuntu; then
apt_get install python${PYTHON3_VERSION} python${PYTHON3_VERSION}-dev
elif is_fedora; then
- if [ "$os_VENDOR" = "Fedora" ]; then
- install_package python${PYTHON3_VERSION//.}
- else
- install_package python${PYTHON3_VERSION//.} python${PYTHON3_VERSION//.}-devel
- fi
+ install_package python${PYTHON3_VERSION}-devel python${PYTHON3_VERSION}-pip
fi
}