{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/4158","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/4158/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/4158/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/4158/events","html_url":"https://github.com/pypa/pip/issues/4158","id":193586654,"number":4158,"title":"Don't keep wheel in cache if install fails.","user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-05T19:23:29Z","updated_at":"2016-12-05T19:25:19Z","closed_at":null,"body":"* Pip version: 9.0.1-15-g47169621\r\n* Python version: 3.5\r\n* Operating System: OS X\r\n\r\nSo I admit this is an edge case, a and it's definitely my fault as i was messing around with a local PyPI and twine internals. But just opening this. \r\n\r\nI unpublished a package version from test-PyPI (it was a broken wheel), though pip was still trying to install it from its http-cache. \r\n\r\nI understand that's an edge case, but would it be easy to not store, or to remove a cached object if it fails to installs ?\r\n\r\nI'm going to guess we should do the same for the wheel cache.\r\nJust a thought. I haven't found other issue like this one. \r\n\r\nThanks !\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/264950387","html_url":"https://github.com/pypa/pip/issues/4158#issuecomment-264950387","issue_url":"https://api.github.com/repos/pypa/pip/issues/4158","id":264950387,"user":{"login":"dstufft","id":145979,"avatar_url":"https://avatars.githubusercontent.com/u/145979?v=3","gravatar_id":"","url":"https://api.github.com/users/dstufft","html_url":"https://github.com/dstufft","followers_url":"https://api.github.com/users/dstufft/followers","following_url":"https://api.github.com/users/dstufft/following{/other_user}","gists_url":"https://api.github.com/users/dstufft/gists{/gist_id}","starred_url":"https://api.github.com/users/dstufft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstufft/subscriptions","organizations_url":"https://api.github.com/users/dstufft/orgs","repos_url":"https://api.github.com/users/dstufft/repos","events_url":"https://api.github.com/users/dstufft/events{/privacy}","received_events_url":"https://api.github.com/users/dstufft/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T19:25:19Z","updated_at":"2016-12-05T19:25:19Z","body":"Well we won't continue to use the cached wheel once the file is gone from PyPI, and you can't reupload the file to PyPI or otherwise change it. The only real downside here that I can think of is that it will bloat the cache a tiny bit."}}
{"actor":{"display_login":"dstufft"}}