aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2018-03-21 11:26:05 +0200
committerLiang Qi <liang.qi@qt.io>2018-04-18 18:15:44 +0000
commitbced3b27e6f5f10048eba826549029e43de520e5 (patch)
tree491e6d0d29ca539e7840603875dfdc8adac41d55 /coin/provisioning
parentafffd938c0e71f08f0a1ad71c5e84be84f1b3dd6 (diff)
Install Python 2.7.13 to RHEL with pip
System's default Python is 2.7.5 and doesn't come with pip at all. To install its pip, it would require us to enable the EPEL repository and install it from there. The repos we use already include Python 2.7.13. If we install that we get pip as well. Change-Id: I083a970697a962ddb301616695c2cf419f1229f8 Reviewed-by: Simo Fält <simo.falt@qt.io> (cherry picked from commit 794913dde77e9a2918353894a33d03b16e6927c4)
Diffstat (limited to 'coin/provisioning')
-rwxr-xr-xcoin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh b/coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh
index 1e79ee11..f9be5d66 100755
--- a/coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh
+++ b/coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh
@@ -63,8 +63,8 @@ installPackages+=(gtk3-devel)
installPackages+=(libusbx-devel)
# speech-dispatcher-devel for QtSpeech, otherwise it has no backend on Linux
installPackages+=(speech-dispatcher-devel)
-# Python
-installPackages+=(python-devel python-virtualenv)
+# Python 2.7 with python-devel, pip and virtualenv
+installPackages+=(python27)
# Python 3 with python-devel, pip and virtualenv
installPackages+=(rh-python36)
# WebEngine
@@ -88,5 +88,8 @@ installPackages+=(bluez-libs-devel)
sudo yum -y update
sudo yum -y install "${installPackages[@]}"
+# Make python 2.7 and its pip default
+echo "source scl_source enable python27" >> ~/.bashrc
+
sudo ln -s /opt/rh/rh-python36/root/usr/bin/python3 /usr/local/bin/python3
sudo ln -s /opt/rh/rh-python36/root/usr/bin/pip3 /usr/local/bin/pip3