provision.py: Use tools/hash_reqs.py.

Use tools/hash_reqs.py to generate hash of requirements.txt in
provision.py while setting up virtualenv.
This commit is contained in:
Eklavya Sharma 2016-06-20 03:39:53 +05:30 committed by Tim Abbott
parent 8148cbe173
commit 500cc32e64
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ def setup_virtualenv(target_venv_path, requirements_file, virtualenv_args=None):
# type: (str, str, List[str]) -> None
# Check if a cached version already exists
output = subprocess.check_output(['sha1sum', requirements_file])
output = subprocess.check_output([os.path.join('tools', 'hash_reqs.py'), requirements_file])
sha1sum = output.split()[0]
cached_venv_path = os.path.join(VENV_CACHE_PATH, sha1sum, os.path.basename(target_venv_path))
success_stamp = os.path.join(cached_venv_path, "success-stamp")