{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2508","labels_url":"https://api.github.com/repos/pypa/pip/issues/2508/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2508/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2508/events","html_url":"https://github.com/pypa/pip/issues/2508","id":60334515,"number":2508,"title":"allow `install --download` to download AND install","user":{"login":"nils-werner","id":88704,"avatar_url":"https://avatars.githubusercontent.com/u/88704?v=3","gravatar_id":"","url":"https://api.github.com/users/nils-werner","html_url":"https://github.com/nils-werner","followers_url":"https://api.github.com/users/nils-werner/followers","following_url":"https://api.github.com/users/nils-werner/following{/other_user}","gists_url":"https://api.github.com/users/nils-werner/gists{/gist_id}","starred_url":"https://api.github.com/users/nils-werner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nils-werner/subscriptions","organizations_url":"https://api.github.com/users/nils-werner/orgs","repos_url":"https://api.github.com/users/nils-werner/repos","events_url":"https://api.github.com/users/nils-werner/events{/privacy}","received_events_url":"https://api.github.com/users/nils-werner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T12:14:30Z","updated_at":"2015-03-09T15:13:25Z","closed_at":null,"body":"Currently pip disables installation when using the `--download` option with `install`.\r\n\r\nThis is very unfortunate as downloading AND installing could be used to allow more comfortable [Fast & Local Installs](https://pip.pypa.io/en/latest/user_guide.html#fast-local-installs), especially when your company has an internal cheeseshop that is only accessible from the inside or via VPN.\r\n\r\nI would have a `pip.conf`\r\n\r\n    [global]\r\n    find-links =\r\n        https://internal-cheeseshop/\r\n\r\n    [install]\r\n    download = ~/.pip/tgzcache\r\n    \r\nand an `offline.conf`\r\n\r\n    [global]\r\n    find-links =\r\n        ~/.pip/tgzcache\r\n\r\nAnd then, for convenience set an alias\r\n\r\n    alias offlinepip=\"PIP_CONFIG_FILE=~/.pip/offline.conf pip\"\r\n\r\nSo when on the train, I could force a local install using `offlinepip` and as long as I have installed a req'd package using `pip` once, the installation would work.\r\n\r\nCurrently, even with caching in place; the installation never works and is super annoying: pip tries to reach our internal cheeseshop repeatedly for each dependency I am trying to install, fails, tries again etc.\r\n\r\nAlternatively, a `force-cache` flag would be nice (and less hackish), too. Anything to circumvent pip from trying to use the network."},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/77872098","html_url":"https://github.com/pypa/pip/issues/2508#issuecomment-77872098","issue_url":"https://api.github.com/repos/pypa/pip/issues/2508","id":77872098,"user":{"login":"piotr-dobrogost","id":92239,"avatar_url":"https://avatars.githubusercontent.com/u/92239?v=3","gravatar_id":"","url":"https://api.github.com/users/piotr-dobrogost","html_url":"https://github.com/piotr-dobrogost","followers_url":"https://api.github.com/users/piotr-dobrogost/followers","following_url":"https://api.github.com/users/piotr-dobrogost/following{/other_user}","gists_url":"https://api.github.com/users/piotr-dobrogost/gists{/gist_id}","starred_url":"https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotr-dobrogost/subscriptions","organizations_url":"https://api.github.com/users/piotr-dobrogost/orgs","repos_url":"https://api.github.com/users/piotr-dobrogost/repos","events_url":"https://api.github.com/users/piotr-dobrogost/events{/privacy}","received_events_url":"https://api.github.com/users/piotr-dobrogost/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T15:13:24Z","updated_at":"2015-03-09T15:13:24Z","body":"Have you tried `--no-index` option?"}}