Python: Upgrade Python version from 3.4 to 3.6 11/68411/1
authorSridhar K. N. Rao <sridhar.rao@spirent.com>
Thu, 29 Aug 2019 19:18:32 +0000 (00:48 +0530)
committerSridhar K. N. Rao <sridhar.rao@spirent.com>
Thu, 29 Aug 2019 19:23:15 +0000 (00:53 +0530)
This patch upgrade python version from 3.4 to 3.6 for the following
systems.
Centos
rhel - 7.2, 7.3 and 7.5
ubuntu
For fedora and opensuse - no specific option available.
SLES is already using 3.6

Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com>
Change-Id: Ib1a1cb04441c8fe53339f7f9a66e0266d6ceefe0

systems/centos/build_base_machine.sh
systems/centos/prepare_python_env.sh
systems/rhel/7.2/build_base_machine.sh
systems/rhel/7.2/prepare_python_env.sh
systems/rhel/7.3/build_base_machine.sh
systems/rhel/7.3/prepare_python_env.sh
systems/rhel/7.5/build_base_machine.sh
systems/rhel/7.5/prepare_python_env.sh
systems/ubuntu/14.04/build_base_machine.sh

index 95f9e21..0e1ed83 100755 (executable)
@@ -76,8 +76,8 @@ sudo yum -y install centos-release-scl-rh
 
 # install python34 packages and git-review tool
 yum -y install $(echo "
-rh-python34
-rh-python34-python-tkinter
+rh-python36
+rh-python36-python-tkinter
 git-review
 " | grep -v ^#)
 # prevent ovs vanilla from building from source due to kernel incompatibilities
index 108ba1f..4f5c006 100755 (executable)
@@ -21,8 +21,8 @@ if [ -d "$VSPERFENV_DIR" ] ; then
     exit
 fi
 
-scl enable rh-python34 "
-virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python34/root/usr/bin/python3
+scl enable rh-python36 "
+virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python36/root/usr/bin/python3
 source "$VSPERFENV_DIR"/bin/activate
 pip install -r ../requirements.txt
 "
index 198f39d..c0f367a 100755 (executable)
@@ -93,14 +93,14 @@ enabled=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
 EOT
 
-# install python34 packages and git-review tool
+# install python36 packages and git-review tool
 yum -y install $(echo "
-rh-python34
-rh-python34-python-tkinter
+rh-python36
+rh-python36-python-tkinter
 " | grep -v ^#)
 
-# cleanup python 34 repo file
-rm -f /etc/yum.repos.d/python34.repo
+# cleanup python 36 repo file
+rm -f /etc/yum.repos.d/python36.repo
 
 # Create hugepage dirs
 mkdir -p /dev/hugepages
index 047d696..b750656 100755 (executable)
@@ -21,8 +21,8 @@ if [ -d "$VSPERFENV_DIR" ] ; then
     exit
 fi
 
-scl enable rh-python34 "
-virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python34/root/usr/bin/python3
+scl enable rh-python36 "
+virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python36/root/usr/bin/python3
 source "$VSPERFENV_DIR"/bin/activate
 pip install -r ../requirements.txt
 "
index ae52721..42c36e4 100755 (executable)
@@ -93,14 +93,14 @@ enabled=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
 EOT
 
-# install python34 packages and git-review tool
+# install python36 packages and git-review tool
 yum -y install $(echo "
-rh-python34
-rh-python34-python-tkinter
+rh-python36
+rh-python36-python-tkinter
 " | grep -v ^#)
 
-# cleanup python 34 repo file
-rm -f /etc/yum.repos.d/python34.repo
+# cleanup python 36 repo file
+rm -f /etc/yum.repos.d/python36.repo
 
 # Create hugepage dirs
 mkdir -p /dev/hugepages
index 047d696..b750656 100755 (executable)
@@ -21,8 +21,8 @@ if [ -d "$VSPERFENV_DIR" ] ; then
     exit
 fi
 
-scl enable rh-python34 "
-virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python34/root/usr/bin/python3
+scl enable rh-python36 "
+virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python36/root/usr/bin/python3
 source "$VSPERFENV_DIR"/bin/activate
 pip install -r ../requirements.txt
 "
index 2073a38..deb4e8a 100755 (executable)
@@ -93,14 +93,14 @@ enabled=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
 EOT
 
-# install python34 packages and git-review tool
+# install python36 packages and git-review tool
 yum -y install $(echo "
-rh-python34
-rh-python34-python-tkinter
+rh-python36
+rh-python36-python-tkinter
 " | grep -v ^#)
 
-# cleanup python 34 repo file
-rm -f /etc/yum.repos.d/python34.repo
+# cleanup python 36 repo file
+rm -f /etc/yum.repos.d/python36.repo
 
 # Create hugepage dirs
 mkdir -p /dev/hugepages
index 047d696..b750656 100755 (executable)
@@ -21,8 +21,8 @@ if [ -d "$VSPERFENV_DIR" ] ; then
     exit
 fi
 
-scl enable rh-python34 "
-virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python34/root/usr/bin/python3
+scl enable rh-python36 "
+virtualenv "$VSPERFENV_DIR" --python /opt/rh/rh-python36/root/usr/bin/python3
 source "$VSPERFENV_DIR"/bin/activate
 pip install -r ../requirements.txt
 "
index a0e6895..5501cab 100755 (executable)
@@ -75,7 +75,7 @@ python3-setuptools
 python3-dbus
 python3-dev
 python3-tk
-libpython3.4
+libpython3.6
 python3-reportlab
 
 # libs