Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pip doesn't delete build dir when interrupted with Ctrl-c #413
Apart from polluting $PWD with the build dir, it will result in the next invocation of pip to install the same package to ignore any version requirements; instead it will just install the version of the package that is in the build dir. E.g.
If we now try an install a different version of the package
if we check the version we see
i.e. verion 0.5 was installed, not the requested 0.6. However, the last invocation of pip did actually clean up the build dir, so if we try again
we get the version we are looking for
This is really two separate bugs - ideally pip should delete the build directory even when interrupted, but even if a build directory is present with an unpacked sdist for a requested package, pip ought to check the version before installing from it.
Thanks for the report!