From 3b4f23e2b01c25ef8dae7276d9c57b0e7e095df2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 6 Nov 2015 11:10:35 +0100 Subject: [PATCH] devstack: install PostgreSQL devel tool for psycopg2 Change-Id: I830018cb3008f1036880c29c9a851b109a9be65e --- devstack/plugin.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 2e801d3ad..572cedd56 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -131,7 +131,12 @@ function _aodh_create_accounts { # Activities to do before aodh has been installed. function preinstall_aodh { - echo_summary "Preinstall not in virtualenv context. Skipping." + # Needed to build psycopg2 + if is_ubuntu; then + install_package libpq-dev + else + install_package postgresql-devel + fi } # Remove WSGI files, disable and remove Apache vhost file