{"action":"created","issue":{"url":"https://api.github.com/repos/stankevich/puppet-python/issues/218","labels_url":"https://api.github.com/repos/stankevich/puppet-python/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/stankevich/puppet-python/issues/218/comments","events_url":"https://api.github.com/repos/stankevich/puppet-python/issues/218/events","html_url":"https://github.com/stankevich/puppet-python/issues/218","id":96916866,"number":218,"title":"Pip install runs on every puppet run.","user":{"login":"supereman16","id":1647525,"avatar_url":"https://avatars.githubusercontent.com/u/1647525?v=3","gravatar_id":"","url":"https://api.github.com/users/supereman16","html_url":"https://github.com/supereman16","followers_url":"https://api.github.com/users/supereman16/followers","following_url":"https://api.github.com/users/supereman16/following{/other_user}","gists_url":"https://api.github.com/users/supereman16/gists{/gist_id}","starred_url":"https://api.github.com/users/supereman16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supereman16/subscriptions","organizations_url":"https://api.github.com/users/supereman16/orgs","repos_url":"https://api.github.com/users/supereman16/repos","events_url":"https://api.github.com/users/supereman16/events{/privacy}","received_events_url":"https://api.github.com/users/supereman16/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-23T22:20:21Z","updated_at":"2015-09-21T16:00:05Z","closed_at":null,"body":"On every run of my puppet agent, it runs a pip install, both when I have\r\n\r\n    ensure => present,\r\n\r\nor,\r\n\r\n    ensure => latest,\r\n\r\nThere has to be a better way to check if it's already the latest version or installed, without just running and Exec for `pip install package` or `pip install --upgrade package`. It takes up a lot of time in the agent's run when I'm installing a lot of packages."},"comment":{"url":"https://api.github.com/repos/stankevich/puppet-python/issues/comments/142026824","html_url":"https://github.com/stankevich/puppet-python/issues/218#issuecomment-142026824","issue_url":"https://api.github.com/repos/stankevich/puppet-python/issues/218","id":142026824,"user":{"login":"tremblaysimon","id":5879940,"avatar_url":"https://avatars.githubusercontent.com/u/5879940?v=3","gravatar_id":"","url":"https://api.github.com/users/tremblaysimon","html_url":"https://github.com/tremblaysimon","followers_url":"https://api.github.com/users/tremblaysimon/followers","following_url":"https://api.github.com/users/tremblaysimon/following{/other_user}","gists_url":"https://api.github.com/users/tremblaysimon/gists{/gist_id}","starred_url":"https://api.github.com/users/tremblaysimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tremblaysimon/subscriptions","organizations_url":"https://api.github.com/users/tremblaysimon/orgs","repos_url":"https://api.github.com/users/tremblaysimon/repos","events_url":"https://api.github.com/users/tremblaysimon/events{/privacy}","received_events_url":"https://api.github.com/users/tremblaysimon/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T16:00:05Z","updated_at":"2015-09-21T16:00:05Z","body":"If we don't talk about #193, I think there is sometimes a \"strange\" behavior when a package has just been updated on PyPI. The pip search package_name command doesn't return the real latest version. I don't know how pip search works but after a couple of minutes the information is updated and the behavior will be the right one (since in pip.pp it uses pip search command).  "}}