Add global venv enable/disable knob

Adds USE_VENV to globally enable/disable use of virtual environments.

ADDITIONAL_VENV_PACKAGES is used to manually add packages that do not
appear in requirements.txt or test-requirements.txt to be installed
into each venv.  Database Python bindings are handled this way when
a dataabse service is enabled.

Change-Id: I9cf298b936fd10c95e2ce5f51aab0d49d4b7f37f
This commit is contained in:
Dean Troyer
2015-03-09 14:27:51 -05:00
parent 05163d66ac
commit 5686dbc45d
8 changed files with 55 additions and 3 deletions
+3
View File
@@ -151,9 +151,12 @@ EOF
else
exit_distro_not_supported "mysql installation"
fi
}
function install_database_python_mysql {
# Install Python client module
pip_install MySQL-python
ADDITIONAL_VENV_PACKAGES+=",MySQL-python"
}
function database_connection_url_mysql {
+3
View File
@@ -100,9 +100,12 @@ EOF
else
exit_distro_not_supported "postgresql installation"
fi
}
function install_database_python_postgresql {
# Install Python client module
pip_install psycopg2
ADDITIONAL_VENV_PACKAGES+=",psycopg2"
}
function database_connection_url_postgresql {