Add the test environment for the virtualenv.
Resolve Bug1037422. Change-Id: Ib36ff6eff6e84af25a8d799173524ced9e6d5d06
This commit is contained in:
parent
0bba3857d1
commit
f885e8bade
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user