Skip to content

Make sure PIP install fails fast and dump logs on failure #828

@arcivanov

Description

@arcivanov

PIP install batches should fail fast otherwise it's unclear what is the nature of the failure:

[DEBUG] Executing command: '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/bin/python3' '-m' 'pip.__main__' 'install' '--upgrade' '--upgrade-strategy' 'only-if-needed' 'coverage~=6.0' 'coveralls~=2.1' 'flake8~=3.7' 'pdoc3>=0.8.3' 'pypandoc~=1.4' 'setuptools>=38.6.0' 'twine>=1.15.0' 'unittest-xml-reporting~=3.0.4' 'wheel>=0.34.0'
[DEBUG] Executing command: '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/bin/python3' '-m' 'pip.__main__' 'install' 'cram' 'sphinx'
------------------------------------------------------------
BUILD FAILED - Unable to install plugin packages into /Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0. Please see '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/install.log' for full details:
	Collecting sphinxcontrib-jsmath
	  Downloading sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
	Collecting pytz>=2015.7
	  Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)
	Collecting MarkupSafe>=2.0
	  Downloading MarkupSafe-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (13 kB)
	Collecting urllib3<1.27,>=1.21.1
	  Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
	Collecting certifi>=2017.4.17
	  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
	Collecting idna<4,>=2.5
	  Downloading idna-3.2-py3-none-any.whl (59 kB)
	Collecting charset-normalizer~=2.0.0
	  Downloading charset_normalizer-2.0.7-py3-none-any.whl (38 kB)
	Collecting pyparsing>=2.0.2
	  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
	Installing collected packages: urllib3, pytz, pyparsing, MarkupSafe, idna, charset-normalizer, certifi, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, sphinxcontrib-devhelp, sphinxcontrib-applehelp, snowballstemmer, requests, Pygments, packaging, Jinja2, imagesize, docutils, babel, alabaster, sphinx, cram
	Successfully installed Jinja2-3.0.2 MarkupSafe-2.0.1 Pygments-2.10.0 alabaster-0.7.12 babel-2.9.1 certifi-2021.10.8 charset-normalizer-2.0.7 cram-0.7 docutils-0.17.1 idna-3.2 imagesize-1.2.0 packaging-21.0 pyparsing-2.4.7 pytz-2021.3 requests-2.26.0 snowballstemmer-2.1.0 sphinx-4.2.0 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 urllib3-1.26.7
	WARNING: You are using pip version 21.2.4; however, version 21.3 is available.
	You should consider upgrading via the '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/bin/python3 -m pip install --upgrade pip' command. (pybuilder/install_utils.py:102)
------------------------------------------------------------
Build finished at 2021-10-12 02:23:20
Build took 19 seconds (19605 ms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions