From 0bbce284e3dbffb0b21dc8a43f4e24fb62e3c8be Mon Sep 17 00:00:00 2001 From: obaranov Date: Mon, 5 Mar 2018 14:54:06 +0200 Subject: [PATCH] Workaround long shebang issue Sometimes tox gate experiences issue [1] with the shebang length which is currently limited to the 127 symbols. As a workaround for that pip can be called as the python module with 'python -m pip [...]' RHOSINFRA-1475 [1] https://github.com/pypa/pip/issues/1773 Change-Id: I9144c476341de1fc670dd5cead30f52cb6b274fc --- tox.ini | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tox.ini b/tox.ini index 3566902a47..329b4365b7 100644 --- a/tox.ini +++ b/tox.ini @@ -37,13 +37,13 @@ whitelist_externals = # This must work for both cases: installing with/without --upgrade deps = commands = - bash -c "PIP_LOG={envdir}/log/pip-conflicts-1.log pip install -q 'pip>=9.0.1'" - - pip check - bash -c "PIP_LOG={envdir}/log/pip-conflicts-2.log pip install -q -e ." - pip check - bash -c "PIP_LOG={envdir}/log/pip-conflicts-3.log pip uninstall -q -y infrared" - bash -c "PIP_LOG={envdir}/log/pip-conflicts-4.log pip install -q --upgrade -e ." - pip check + bash -c "PIP_LOG={envdir}/log/pip-conflicts-1.log python -m pip install -q 'pip>=9.0.1'" + - python -m pip check + bash -c "PIP_LOG={envdir}/log/pip-conflicts-2.log python -m pip install -q -e ." + python -m pip check + bash -c "PIP_LOG={envdir}/log/pip-conflicts-3.log python -m pip uninstall -q -y infrared" + bash -c "PIP_LOG={envdir}/log/pip-conflicts-4.log python -m pip install -q --upgrade -e ." + python -m pip check [testenv:pep8] # hacking pulls flake8, pep8 and more https://pypi.org/project/hacking/ @@ -124,7 +124,7 @@ commands = bash -c 'cd docs; make clean; make html' deps = {toxinidir} setenv = PIP_LOG={envdir}/log/pip-cli.log -install_command = pip install -q --retries 10 {packages} +install_command = python -m pip install -q --retries 10 {packages} commands = infrared plugin add all [testenv:plugin-registry]