Sync install_venv_common.py from oslo-incubator

This is needed to ensure that when using run_tests.sh requirements
are handled correctly. Both requirements.txt and test-requirements.txt
need to be handed to pip at the same time to ensure that all
dependencies are satisfied and we don't upgrade a package to be
outside of the version constraints set by requirements.txt when
installing dependencies for the packages in test-requirements.txt.

Change-Id: I89bcf4e44b7274dca535e8e1d2eeb0adb142cabb
This commit is contained in:
Matthew Treinish
2013-09-20 11:54:32 -04:00
parent e947bde982
commit 50bf2d27c3

View File

@@ -119,8 +119,7 @@ class InstallVenv(object):
self.pip_install('setuptools')
self.pip_install('pbr')
self.pip_install('-r', self.requirements)
self.pip_install('-r', self.test_requirements)
self.pip_install('-r', self.requirements, '-r', self.test_requirements)
def post_process(self):
self.get_distro().post_process()