From 5c34b2ff55dc9d34dc1f2b52ac4869141935ba78 Mon Sep 17 00:00:00 2001 From: Daniel Bengtsson Date: Fri, 2 Sep 2022 13:51:57 +0200 Subject: [PATCH] Use python -m instead pip directly. It's recommend to use this way. With tox is not really necessary to do it but it can be good to use it. See this article[1], For example python -m pip executes pip using the Python interpreter you specified as python. [1] https://snarky.ca/why-you-should-use-python-m-pip/ Change-Id: Ie4be214cce624bc73b8d6661ed459becb418ffa0 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ef1b004650..54e6981071 100644 --- a/tox.ini +++ b/tox.ini @@ -118,7 +118,7 @@ allowlist_externals = bash commands_pre = ansible-galaxy collection install ansible.posix containers.podman - pip install -q bindep fixtures + python -m pip install -q bindep fixtures bindep test commands = pytest --color=no \