diff options
| author | Monty Taylor <mordred@inaugust.com> | 2012-10-09 08:46:40 -0700 |
|---|---|---|
| committer | Monty Taylor <mordred@inaugust.com> | 2012-10-09 08:46:40 -0700 |
| commit | 9de5309496dfbd8a986ca40bf50f94f728db09fe (patch) | |
| tree | bd38b6ec9f3a4c7e6574048297302d4e91f35eaa | |
| parent | 8236d3b4f6945f6057252e6bc195bec103e9b12d (diff) | |
| download | keystone-9de5309496dfbd8a986ca40bf50f94f728db09fe.tar.gz keystone-9de5309496dfbd8a986ca40bf50f94f728db09fe.tar.xz keystone-9de5309496dfbd8a986ca40bf50f94f728db09fe.zip | |
Use setup.py develop to insert code into venv.
Change-Id: I41ebfe5165aa315ea6c9900f10e48ad6fb9e1e6f
| -rw-r--r-- | tools/install_venv.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py index 97c82daf..3fa40bfa 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -104,6 +104,12 @@ def install_dependencies(venv=VENV): PIP_REQUIRES, '-r', TEST_REQUIRES], redirect_output=False) +def install_self(): + print 'Installing project code into virtualenv so that paths work' + run_command(['tools/with_venv.sh', 'python', 'setup.py', 'develop'], + redirect_output=True) + + def print_help(): help = """ Virtual environment configuration complete. @@ -127,6 +133,7 @@ def main(argv): check_dependencies() create_virtualenv() install_dependencies() + install_self() print_help() if __name__ == '__main__': |
