diff options
| author | Monty Taylor <mordred@inaugust.com> | 2012-08-15 16:04:56 -0400 |
|---|---|---|
| committer | Monty Taylor <mordred@inaugust.com> | 2012-10-17 12:13:20 -0700 |
| commit | 36a8fe04c48b59707cb0fecc7ecb64a5cfce2909 (patch) | |
| tree | 0a04012ec88d91d9359d408ac9184540059bc14b /tools | |
| parent | 6bf2e41cc3ad636b9d4c493a2a61f97aacefd4cf (diff) | |
| download | nova-36a8fe04c48b59707cb0fecc7ecb64a5cfce2909.tar.gz nova-36a8fe04c48b59707cb0fecc7ecb64a5cfce2909.tar.xz nova-36a8fe04c48b59707cb0fecc7ecb64a5cfce2909.zip | |
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
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/install_venv.py | 7 |
1 files changed, 2 insertions, 5 deletions
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(): |
