From d80d6f9ec87efd99cf208f6e9f609bd5388f821d Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 3 May 2016 13:13:45 +0100 Subject: [PATCH] Make tox use python2.7 more specifically When executing tox it tries to identify the appropriate Python 2 binary to use. When multiple Python 2.x binaries are available then this may fail. We specifically support the use of Python 2.7 so this patch explicitly sets tox to make use of Python 2.7. This resolves a situation where executing a tox test may result in the error 'ERROR: InterpreterNotFound: python2'. Change-Id: I647bc898343789e89963424033363a2d72b89c79 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 4b47d9e049..404f02b5c0 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt whitelist_externals = bash -basepython = python2 +basepython = python2.7 [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html