setup_venvs.py: Enforce Python 2.7 for zulip-thumbor-venv setup.

zulip-thumbor-venv runs only with Python 2.7. This could cause
provision failures on setups where Python 2.7 is not the default.
This commit is contained in:
Robert Hönig 2018-01-31 11:00:16 +01:00 committed by Tim Abbott
parent 3f75b78912
commit 53b4c793f6
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def main() -> None:
# starts referring to the system Python interpreter.
python_interpreter = subprocess_text_output(['which', 'python3'])
setup_virtualenv("/srv/zulip-thumbor-venv", THUMBOR_REQS_FILE,
patch_activate_script=True)
patch_activate_script=True, virtualenv_args=['-p', 'python2.7'])
setup_virtualenv(VENV_PATH, DEV_REQS_FILE, patch_activate_script=True,
virtualenv_args=['-p', python_interpreter])