diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-10-10 05:22:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-10-10 05:22:22 +0000 |
commit | 3ec3c7aed1728f0a0b48097cfc472b68dfd902db (patch) | |
tree | 8327777a43852021f16fa244d4b78586f6c752de | |
parent | b0eb94dbc0aff690fcbde6d49c3ad5c6578eb7b5 (diff) | |
parent | 9de5309496dfbd8a986ca40bf50f94f728db09fe (diff) | |
download | keystone-3ec3c7aed1728f0a0b48097cfc472b68dfd902db.tar.gz keystone-3ec3c7aed1728f0a0b48097cfc472b68dfd902db.tar.xz keystone-3ec3c7aed1728f0a0b48097cfc472b68dfd902db.zip |
Merge "Use setup.py develop to insert code into venv."
-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__': |