Skip to content

Exit with > 0 status code if pip fails to install due to existing build dir #1835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
benbeanfield opened this issue May 23, 2014 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@benbeanfield
Copy link

When pip fails to install a package due to the existence of a pre-existing build directory, it should exit with a status code that is greater than 0, in order to indicate that the command was unsuccessful.

$ pip install -U foobar
Downloading/unpacking foobar from https://pypi.example.com/foobar/foobar-0.1.1.tar.gz

pip can't proceed with requirement 'foobar from https://pypi.example.com/foobar/foobar-0.1.1.tar.gz' due to a pre-existing build directory.
 location: /opt/example/foo/venvs/foo/build/foobar
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.
@qwcode
Copy link
Contributor

qwcode commented May 24, 2014

this was fixed in v1.5 (PR #1162)

@qwcode qwcode closed this as completed May 24, 2014
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

2 participants