From 7eeee584ad64b5a76c029641243a8fca2c875772 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 29 Sep 2011 15:06:54 +0100 Subject: [PATCH] install_venv: don't use --no-site-packages with virtualenv libvirt isn't listed in pip-requires because (a) it's not in PyPi and (b) you always want to use libvirt's python bindings that matches the version of libvirt installed on the system. Currently, running nova-compute in virtualenv fails because libvirt can't be imported. The --no-site-packages flag is what prevents this. Everything seems to work fine without it. To verify, try deleting the no-global-site-packages.txt from your .nova-venv. Change-Id: I1df5e8e3c4426ca333c2d6b5b4fa8ece144dddf3 --- tools/install_venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install_venv.py b/tools/install_venv.py index a137f1156b3b..912d0a251de3 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -89,7 +89,7 @@ def create_virtualenv(venv=VENV): virtual environment """ print 'Creating venv...', - run_command(['virtualenv', '-q', '--no-site-packages', VENV]) + run_command(['virtualenv', '-q', VENV]) print 'done.' print 'Installing pip in virtualenv...', if not run_command(['tools/with_venv.sh', 'easy_install', 'pip']).strip():