mirror of https://github.com/zulip/zulip.git
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:
parent
8148cbe173
commit
500cc32e64
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue