summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2016-04-04 19:39:47 +1000
committerJoshua Hesketh <josh@nitrotech.org>2016-04-04 19:39:47 +1000
commitf224cae0bd01a4bb5d23381a417189bd10c40212 (patch)
tree4bafb2d7cd654a26864440bc2d042077b1efdaca
parent676fa221cde9e453acef91dd8bb928013dc19ee9 (diff)
downloadturbo-hipster-f224cae0bd01a4bb5d23381a417189bd10c40212.tar.gz
Workaround for old python in 1204
Python in ubuntu 12.04 needs an older version of greenlet. This is a workaround while turbo-hipster is upgraded to 16.04. Change-Id: Iaa1c806583f79378e40b76abf11bbce2a4361c45
-rwxr-xr-xturbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
index dbf9ccd..5ea4630 100755
--- a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
+++ b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
@@ -48,6 +48,14 @@ pip_requires() {
fi
echo "Install pip requirements from $requires"
pip install -q -r $requires
+
+ # Workaround for old python version on ubuntu-precise
+ ubuntu_version=$( lsb_release -r | awk '{ print $2 }' | sed 's/[.]//' )
+ if [ $ubuntu_version -eq 1204 ]
+ then
+ pip install -U "greenlet<0.4.9"
+ fi
+
echo "Requirements installed"
}