{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4840","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4840/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4840/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4840/events","html_url":"https://github.com/travis-ci/travis-ci/issues/4840","id":107768953,"number":4840,"title":"[based on containers] pip install with cache intall all packages again","user":{"login":"moylop260","id":6644187,"avatar_url":"https://avatars.githubusercontent.com/u/6644187?v=3","gravatar_id":"","url":"https://api.github.com/users/moylop260","html_url":"https://github.com/moylop260","followers_url":"https://api.github.com/users/moylop260/followers","following_url":"https://api.github.com/users/moylop260/following{/other_user}","gists_url":"https://api.github.com/users/moylop260/gists{/gist_id}","starred_url":"https://api.github.com/users/moylop260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moylop260/subscriptions","organizations_url":"https://api.github.com/users/moylop260/orgs","repos_url":"https://api.github.com/users/moylop260/repos","events_url":"https://api.github.com/users/moylop260/events{/privacy}","received_events_url":"https://api.github.com/users/moylop260/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/python","name":"python","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-22T18:09:23Z","updated_at":"2015-09-22T18:28:11Z","closed_at":null,"body":"I have next .travis.yml [cache section](https://github.com/moylop260/pylint-oca/blob/d097bc9cebdb2d85fab8edfb23d38f4cef7a26ac/.travis.yml#L2-L6)\r\n```yaml\r\nsudo: false\r\ncache:\r\n  apt: true\r\n  directories:\r\n    - $HOME/.pip-cache/\r\n```\r\n\r\nI have next [pip install](https://github.com/moylop260/pylint-oca/blob/d097bc9cebdb2d85fab8edfb23d38f4cef7a26ac/.travis.yml#L17)\r\n```yaml\r\n - pip install . coveralls flake8\r\n```\r\n\r\nI saw that my [build](https://travis-ci.org/moylop260/pylint-oca/builds/81635158) use cache here\r\n![cache travis](https://cloud.githubusercontent.com/assets/6644187/10027072/a6c72dec-612a-11e5-9385-22a62fff13aa.png)\r\nGood!\r\n\r\nI expected that pip packages cached were not installed.\r\n\r\nBut I saw that pip packages are installed again in my [build](https://travis-ci.org/moylop260/pylint-oca/builds/81635158#L114)\r\n![pip_install](https://cloud.githubusercontent.com/assets/6644187/10027116/f0f9c46a-612a-11e5-8052-2f34331d3feb.png)\r\n\r\nWhat is wrong with my configuration?"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/142373068","html_url":"https://github.com/travis-ci/travis-ci/issues/4840#issuecomment-142373068","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4840","id":142373068,"user":{"login":"alex","id":772,"avatar_url":"https://avatars.githubusercontent.com/u/772?v=3","gravatar_id":"","url":"https://api.github.com/users/alex","html_url":"https://github.com/alex","followers_url":"https://api.github.com/users/alex/followers","following_url":"https://api.github.com/users/alex/following{/other_user}","gists_url":"https://api.github.com/users/alex/gists{/gist_id}","starred_url":"https://api.github.com/users/alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex/subscriptions","organizations_url":"https://api.github.com/users/alex/orgs","repos_url":"https://api.github.com/users/alex/repos","events_url":"https://api.github.com/users/alex/events{/privacy}","received_events_url":"https://api.github.com/users/alex/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T18:28:11Z","updated_at":"2015-09-22T18:28:11Z","body":"@BanzaiMan you are correct: https://github.com/pyca/cryptography/blob/master/.travis.yml#L5-L7"}}