From bb365d411d88a71871993b4ed803c2ffbbcb79bf Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Mon, 10 Apr 2017 11:01:57 +0000 Subject: Yardstick virtualenv support JIRA: YARDSTICK-620 In the patch, I separate python-setuptools from install.sh and separate appdirs from requirements.txt because there will be error when install them in virtualenv. Also I will update the documentation when this patch merged; Change-Id: I99a532d1851983775869e7c5e8e65fd0229e86df Signed-off-by: chenjiankun --- api/api-prepare.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api') diff --git a/api/api-prepare.sh b/api/api-prepare.sh index f2be48909..7632d9da9 100755 --- a/api/api-prepare.sh +++ b/api/api-prepare.sh @@ -33,6 +33,9 @@ close-on-exec = 1 daemonize= /var/log/yardstick/uwsgi.log socket = /var/run/yardstick.sock EOF + if [[ "${YARDSTICK_VENV}" ]];then + echo "virtualenv = ${YARDSTICK_VENV}" >> "${uwsgi_config}" + fi fi # nginx config -- cgit