poise / python

THIS COOKBOOK IS DEPRECATED – Chef cookbook to install Python and related tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get-pip.py masks errors

timor-raiman opened this issue · comments

To reproduce, run:
sudo -u nobody python /var/chef/cache/get-pip.py
echo $?

Expected outcome: an error code is returned.
Actual outcome: success (0) is returned regardless of errors.

The indirect result of this behaviour is that the install-pip action always succeeds. However, if in fact there was an error, subsequent pip resources will fail with something like:

Error executing action install on resource 'python_pip[virtualenv]'
Errno::ENOENT
No such file or directory - pip install virtualenv

Reported upstream: pypa/pip#1535

It's fixed upstream, just needs pulling in.

Closing this out as https://github.com/poise/poise-python no longer bundles the get-pip.py.