From 36a8fe04c48b59707cb0fecc7ecb64a5cfce2909 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 15 Aug 2012 16:04:56 -0400 Subject: Change install_venv to use setup.py develop. With the potential use of entry points, code from the current tree needs to be installed into a venv created by install_venv.py via setup.py develop. This will ensure that the appropriate meta-data and paths are set in the virtualenv. Change-Id: I1ca15959c98a24629d2f5b2c385296c4e2fe770c --- tools/install_venv.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tools') diff --git a/tools/install_venv.py b/tools/install_venv.py index 432ca1d96..19b8f3f1e 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -196,11 +196,8 @@ def install_dependencies(venv=VENV): pip_install('-r', PIP_REQUIRES) pip_install('-r', TEST_REQUIRES) - # Tell the virtual env how to "import nova" - pthfile = os.path.join(venv, "lib", PY_VERSION, "site-packages", - "nova.pth") - f = open(pthfile, 'w') - f.write("%s\n" % ROOT) + # Install nova into the virtual_env. No more path munging! + run_command([os.path.join(venv, 'bin/python'), 'setup.py', 'develop']) def post_process(): -- cgit