Added installing of pymysql

We need to use pymysql for python3 and as a result of changing config -
for python2.

Change-Id: I3421f17f53f470ace945c800de9d197908fb3b10
This commit is contained in:
Evgeny Sikachev 2016-12-22 10:36:08 +04:00
parent 872cbd7510
commit 527284528f
2 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,7 @@ APT_PACKAGES+=" gettext"
# Glance-client is required for diskimage-integration jobs
PIP_PACKAGES="python-glanceclient"
# Requirements for Sahara
PIP_PACKAGES+=" mysql-python"
PIP_PACKAGES+=" mysql-python pymysql"
# Requirements for dib-jobs
PIP_PACKAGES+=" python-openstackclient"
PIP_PACKAGES+=" pip==8.1.1 tox"

View File

@ -48,7 +48,6 @@ case $(echo $JOB_NAME | awk -F '-' '{ print $NF }') in
python3)
sudo apt install python3-pip python3-dev -y
sudo pip3 $pip_cmd
sudo pip3 install pymysql
;;
*)
sudo pip $pip_cmd