Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Pip should return 'error' upon failed installation attemps #21

Closed
vbabiy opened this Issue · 6 comments

5 participants

@vbabiy

Currently, if 'Pip install somepackage' fails because somepackage is non-existent or does not download completely etc, pip emits some error messages, but does not set the return code to non-zero.

'Pip' or 'Pip install' set the return code to 2.

This behaviour makes it unnecessarily difficult to check pip install results, for instance in bash scripts for automatic package installation.


@vbabiy

A similar issue was reported in #214.

A good first step may be to review the exit codes of all commands and document
them. Once the exit codes are documented people can easily help
normalize/improve them.

return-a-userful


Original Comment By: Kelsey Hightower
@vbabiy

+1 for this. if a pip install fails it could fry my build.


Original Comment By: ghostrocket
@TTimo

+1 .. ran into this .. lost significant time before I realized what was going on

@anotherthomas
>pip --version
pip 1.1

seems to be fixed:

> pip install django-formadmin3 ; echo $?
[snipped]
1

If e.g. the PIP_DOWNLOAD_CACHE is write-protected:

> pip install wsgi-oauth2; echo $?
[snipped stacktrace]
2
@Zearin

+1

@dstufft
Owner

This seems to be fixed at some point.

@dstufft dstufft closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.