[#4966] - Fedora 26 doesn't have development tools handy (#4997)

This commit is contained in:
Bob Strecansky
2017-08-09 09:12:36 -07:00
committed by Brad Warren
parent 6c52cc49a7
commit 5e58580d13
2 changed files with 30 additions and 4 deletions
+15 -2
View File
@@ -410,8 +410,7 @@ BootstrapRpmCommon() {
ca-certificates
"
# Some distros and older versions of current distros use a "python27"
# instead of "python" naming convention. Try both conventions.
# Most RPM distros use the "python" or "python-" naming convention. Let's try that first.
if $SUDO $tool list python >/dev/null 2>&1; then
pkgs="$pkgs
python
@@ -420,6 +419,20 @@ BootstrapRpmCommon() {
python-tools
python-pip
"
# Fedora 26 starts to use the prefix python2 for python2 based packages.
# this elseif is theoretically for any Fedora over version 26:
elif $SUDO $tool list python2 >/dev/null 2>&1; then
pkgs="$pkgs
python2
python2-libs
python2-setuptools
python2-devel
python2-virtualenv
python2-tools
python2-pip
"
# Some distros and older versions of current distros use a "python27"
# instead of the "python" or "python-" naming convention.
else
pkgs="$pkgs
python27
@@ -54,8 +54,7 @@ BootstrapRpmCommon() {
ca-certificates
"
# Some distros and older versions of current distros use a "python27"
# instead of "python" naming convention. Try both conventions.
# Most RPM distros use the "python" or "python-" naming convention. Let's try that first.
if $SUDO $tool list python >/dev/null 2>&1; then
pkgs="$pkgs
python
@@ -64,6 +63,20 @@ BootstrapRpmCommon() {
python-tools
python-pip
"
# Fedora 26 starts to use the prefix python2 for python2 based packages.
# this elseif is theoretically for any Fedora over version 26:
elif $SUDO $tool list python2 >/dev/null 2>&1; then
pkgs="$pkgs
python2
python2-libs
python2-setuptools
python2-devel
python2-virtualenv
python2-tools
python2-pip
"
# Some distros and older versions of current distros use a "python27"
# instead of the "python" or "python-" naming convention.
else
pkgs="$pkgs
python27