From 53b4c793f68dc130be1c43e37b7efc0241d109d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6nig?= Date: Wed, 31 Jan 2018 11:00:16 +0100 Subject: [PATCH] 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. --- tools/setup/setup_venvs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/setup/setup_venvs.py b/tools/setup/setup_venvs.py index f43da67bc5..08dffab0d3 100755 --- a/tools/setup/setup_venvs.py +++ b/tools/setup/setup_venvs.py @@ -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])