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
This commit is contained in:
parent
6bf2e41cc3
commit
36a8fe04c4
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user