diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-07-15 21:53:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-07-15 21:53:29 +0000 |
commit | aae0cf362adf4903679b68249171746ee5a44f6a (patch) | |
tree | f035153a50908a04fae16beff326c9ecd8b8ef40 /tools | |
parent | 09943c86f062e29acd259ca2a8353980af6a78d1 (diff) | |
parent | cf5f098e9622b48d0e851c128f2cf1df123bd873 (diff) | |
download | nova-aae0cf362adf4903679b68249171746ee5a44f6a.tar.gz |
Merge "Sync harmless changes from oslo-incubator"
Diffstat (limited to 'tools')
-rw-r--r-- | tools/patch_tox_venv.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tools/patch_tox_venv.py b/tools/patch_tox_venv.py index ebbf766bb0..e179575af8 100644 --- a/tools/patch_tox_venv.py +++ b/tools/patch_tox_venv.py @@ -17,7 +17,13 @@ import os import sys -import install_venv_common as install_venv +import install_venv_common as install_venv # noqa + + +def first_file(file_list): + for candidate in file_list: + if os.path.exists(candidate): + return candidate def main(argv): @@ -25,8 +31,14 @@ def main(argv): venv = os.environ['VIRTUAL_ENV'] - pip_requires = os.path.join(root, 'requirements.txt') - test_requires = os.path.join(root, 'test-requirements.txt') + pip_requires = first_file([ + os.path.join(root, 'requirements.txt'), + os.path.join(root, 'tools', 'pip-requires'), + ]) + test_requires = first_file([ + os.path.join(root, 'test-requirements.txt'), + os.path.join(root, 'tools', 'test-requires'), + ]) py_version = "python%s.%s" % (sys.version_info[0], sys.version_info[1]) project = 'nova' install = install_venv.InstallVenv(root, venv, pip_requires, test_requires, |