summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2011-10-12 15:15:12 +0000
committerGerrit Code Review <review@openstack.org>2011-10-12 15:15:12 +0000
commitf0a2907e58bdfacf92856817597d359e4a2b0678 (patch)
tree17f7f671b99bc48147d6b71ad77b6a931d8698f2
parentf5f429bac6446db084ca3f5d86c64127a1e539f2 (diff)
parentde5e6ea29efe02de42d95109e22bdd0039789f1b (diff)
downloadnova-f0a2907e58bdfacf92856817597d359e4a2b0678.tar.gz
nova-f0a2907e58bdfacf92856817597d359e4a2b0678.tar.xz
nova-f0a2907e58bdfacf92856817597d359e4a2b0678.zip
Merge "install_venv: refactor out pip_install helper"
-rw-r--r--tools/install_venv.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py
index 3c2f6979f..19bf04da5 100644
--- a/tools/install_venv.py
+++ b/tools/install_venv.py
@@ -97,14 +97,19 @@ def create_virtualenv(venv=VENV):
print 'done.'
+def pip_install(*args):
+ run_command(['tools/with_venv.sh', 'pip', 'install'] + list(args),
+ redirect_output=False)
+
+
def install_dependencies(venv=VENV):
print 'Installing dependencies with pip (this can take a while)...'
+
# Install greenlet by hand - just listing it in the requires file does not
# get it in stalled in the right order
- run_command(['tools/with_venv.sh', 'pip', 'install', '-E', venv,
- 'greenlet'], redirect_output=False)
- run_command(['tools/with_venv.sh', 'pip', 'install', '-E', venv, '-r',
- PIP_REQUIRES], redirect_output=False)
+ pip_install('greenlet')
+
+ pip_install('-r', PIP_REQUIRES)
# Tell the virtual env how to "import nova"
pthfile = os.path.join(venv, "lib", PY_VERSION, "site-packages",