From cfb02a66d3c4358323ae32ce1213fc0a4f12e7b1 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Thu, 21 Jan 2016 16:07:02 +0300 Subject: [PATCH] Add --ignore-installed to pip install in tox.ini This should overcome problem with system argparse in gate. Note that it is safe to do because we don't use any system python packages anyway. Change-Id: Id59a133821e176ad2bffcc5e9c1812a7eb2ab621 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ed3c557..3cb4c34 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,10 @@ skipsdist = True [testenv] usedevelop = True -install_command = pip install -U {opts} {packages} +# --ignore-installed is added to workaround problem with pip 8.0 and argparse +# https://github.com/pypa/pip/issues/3404 and +# https://github.com/pypa/pip/issues/3384 +install_command = pip install --ignore-installed -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} LANG=en_US.UTF-8 LANGUAGE=en_US:en