summaryrefslogtreecommitdiff
path: root/coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2018-03-21 11:26:05 +0200
committerTony Sarajärvi <tony.sarajarvi@qt.io>2018-03-22 06:05:42 +0000
commit794913dde77e9a2918353894a33d03b16e6927c4 (patch)
treeff7f4694f0d105a449c2229f31548f44ae6a1870 /coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh
parent5085220907005503326b8d4f17d52b5e6e00d731 (diff)
downloadqt5-794913dde77e9a2918353894a33d03b16e6927c4.tar.gz
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>
Diffstat (limited to 'coin/provisioning/qtci-linux-RHEL-7.4-x86_64/04-install-packages.sh')
-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 74900f78..56ed138a 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
@@ -93,5 +93,8 @@ installPackages+=(libffi-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