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
This commit is contained in:
Yuriy Taraday 2016-01-21 16:07:02 +03:00
parent 0c0644ca81
commit cfb02a66d3

View File

@ -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