diff --git a/tools/provision b/tools/provision index fb14dd1..2269e8f 100755 --- a/tools/provision +++ b/tools/provision @@ -36,7 +36,7 @@ the Python version this command is executed with.""" stderr=subprocess.STDOUT, universal_newlines=True) # The output has the format "Python 1.2.3" py_version_list = py_version_output.split()[1].split('.') - py_version = tuple(int(num) for num in py_version_list) + py_version = tuple(int(num) for num in py_version_list[0:2]) venv_name = 'zulip-api-py{}-venv'.format(py_version[0]) if py_version <= (3, 1) and (not options.force):