python3 packages for fedora and redhat based systems
@@ -44,8 +44,13 @@ Linux)
fi
fi
;;
- RedHatEnterpriseWorkstation|RedHatEnterpriseServer|CentOS)
- for package in python2-pip python-virtualenv mariadb-devel libev-devel libvirt-devel libffi-devel; do
+ RedHatEnterpriseWorkstation|RedHatEnterpriseServer|RedHatEnterprise|CentOS)
+ if [[ "$PYTHON" =~ "python2" ]]; then
+ deps=(python-pip python-devel python-virtualenv mariadb-devel libev-devel libvirt-devel libffi-devel)
+ else
+ deps=(python3-pip python3-devel python3-virtualenv mariadb-devel libev-devel libvirt-devel libffi-devel)
+ fi
+ for package in ${deps[@]}; do
if [ "$(rpm -q $package)" == "package $package is not installed" ]; then
missing="${missing:+$missing }$package"
fi
@@ -64,7 +69,12 @@ Linux)
fi
;;
Fedora)
- for package in python2-pip python2-virtualenv libev-devel libvirt-devel libffi-devel; do
+ if [[ "$PYTHON" =~ "python2" ]]; then
+ deps=(python-pip python-devel python-virtualenv libev-devel libvirt-devel libffi-devel)
+ else
+ deps=(python3-pip python3-devel python3-virtualenv libev-devel libvirt-devel libffi-devel)
+ fi
+ for package in ${deps[@]}; do
if [ "$(rpm -q $package)" == "package $package is not installed" ]; then
missing="${missing:+$missing }$package"
fi
