Skip to content

pip should return non-zero exit status on error "can't proceed... due to a pre-existing build directory" #1235

@cypreess

Description

@cypreess

pip should return non-zero exit status after erroring on "can't proceed... due to a pre-existing build directory"

Returning ZERO exit status give false positive behaviour in automation scripting (e.g. ansible provisioning)

Downloading/unpacking Django==1.4.8 (from -r /vagrant/project/requirements.pip (line 1))

pip can't proceed with requirement 'Django==1.4.8 (from -r /vagrant/project/requirements.pip (line 1))' due to a pre-existing build directory.
 location: /home/vagrant/venv/build/Django
This is likely due to a previous installation that failed.
pip is being responsible and not assuming it can delete this.
Please delete it and try again.

Cleaning up...
vagrant@precise64:~$ echo $?
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions