diff options
| author | Vincent Hou <sbhou@cn.ibm.com> | 2012-08-22 16:21:29 +0800 |
|---|---|---|
| committer | Vincent Hou <sbhou@cn.ibm.com> | 2012-08-22 16:21:29 +0800 |
| commit | f885e8bade361602e0665cc8d176b8bd8ad0f779 (patch) | |
| tree | 8b494416a064d059af98767c37620f19216a929d /tools | |
| parent | 0bba3857d19bdfbc7ac3a408b3889b92245ed812 (diff) | |
| download | python-cinderclient-f885e8bade361602e0665cc8d176b8bd8ad0f779.tar.gz | |
Add the test environment for the virtualenv.
Resolve Bug1037422.
Change-Id: Ib36ff6eff6e84af25a8d799173524ced9e6d5d06
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/install_venv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py index 5706adb..db0e32b 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -32,6 +32,7 @@ import platform ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) VENV = os.path.join(ROOT, '.venv') PIP_REQUIRES = os.path.join(ROOT, 'tools', 'pip-requires') +TEST_REQUIRES = os.path.join(ROOT, 'tools', 'test-requires') PY_VERSION = "python%s.%s" % (sys.version_info[0], sys.version_info[1]) @@ -188,7 +189,7 @@ def install_dependencies(venv=VENV): pip_install('distribute') pip_install('-r', PIP_REQUIRES) - + pip_install('-r', TEST_REQUIRES) # Tell the virtual env how to "import cinder" pthfile = os.path.join(venv, "lib", PY_VERSION, "site-packages", "cinderclient.pth") |
