Use python -m pip instead pip command.
It's recommand to use this way. With tox is not really necessary to do it but it can be good to use it. See this article: https://snarky.ca/why-you-should-use-python-m-pip/ For example python -m pip executes pip using the Python interpreter you specified as python. Change-Id: Ia17e693cc93a3b2f0ef460a3768d120feb9280ad
This commit is contained in:
parent
b9f753d967
commit
28cf4a2625
2
tox.ini
2
tox.ini
|
@ -7,7 +7,7 @@ skipsdist = True
|
|||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
||||
install_command = {envpython} -m pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
||||
setenv =
|
||||
ANSIBLE_FORCE_COLOR={env:ANSIBLE_FORCE_COLOR:1}
|
||||
ANSIBLE_INVENTORY={toxinidir}/tests/hosts.ini
|
||||
|
|
Loading…
Reference in New Issue