{"action":"created","issue":{"url":"https://api.github.com/repos/fabtools/fabtools/issues/331","repository_url":"https://api.github.com/repos/fabtools/fabtools","labels_url":"https://api.github.com/repos/fabtools/fabtools/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/fabtools/fabtools/issues/331/comments","events_url":"https://api.github.com/repos/fabtools/fabtools/issues/331/events","html_url":"https://github.com/fabtools/fabtools/issues/331","id":183684987,"number":331,"title":"feature request: with fabtools.python.version(3.4): do smth","user":{"login":"bialix","id":82971,"avatar_url":"https://avatars.githubusercontent.com/u/82971?v=3","gravatar_id":"","url":"https://api.github.com/users/bialix","html_url":"https://github.com/bialix","followers_url":"https://api.github.com/users/bialix/followers","following_url":"https://api.github.com/users/bialix/following{/other_user}","gists_url":"https://api.github.com/users/bialix/gists{/gist_id}","starred_url":"https://api.github.com/users/bialix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bialix/subscriptions","organizations_url":"https://api.github.com/users/bialix/orgs","repos_url":"https://api.github.com/users/bialix/repos","events_url":"https://api.github.com/users/bialix/events{/privacy}","received_events_url":"https://api.github.com/users/bialix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-18T13:23:25Z","updated_at":"2016-10-18T13:32:34Z","closed_at":null,"body":"I need to install python 3.x on my server centos 7, and command `fabtools.require.rpm.package(\"python34\")`\r\nworks as expected. But then it seems not very clear  I need to pass python3.4 in every next command that install new packages to that installed python.\r\n\r\nIt will be nice to have context manager a-la \r\n\r\n```\r\nwith fabtools.python.version(3):\r\n    fabtools.require.python.pip()\r\n```\r\n\r\nI need some guidance to implement this."},"comment":{"url":"https://api.github.com/repos/fabtools/fabtools/issues/comments/254508392","html_url":"https://github.com/fabtools/fabtools/issues/331#issuecomment-254508392","issue_url":"https://api.github.com/repos/fabtools/fabtools/issues/331","id":254508392,"user":{"login":"bialix","id":82971,"avatar_url":"https://avatars.githubusercontent.com/u/82971?v=3","gravatar_id":"","url":"https://api.github.com/users/bialix","html_url":"https://github.com/bialix","followers_url":"https://api.github.com/users/bialix/followers","following_url":"https://api.github.com/users/bialix/following{/other_user}","gists_url":"https://api.github.com/users/bialix/gists{/gist_id}","starred_url":"https://api.github.com/users/bialix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bialix/subscriptions","organizations_url":"https://api.github.com/users/bialix/orgs","repos_url":"https://api.github.com/users/bialix/repos","events_url":"https://api.github.com/users/bialix/events{/privacy}","received_events_url":"https://api.github.com/users/bialix/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T13:32:34Z","updated_at":"2016-10-18T13:32:34Z","body":"I need something like this to be implemented, because fabtools.require.python.package has no simple way to install packages into non-default python: there is `python_cmd` but it's only using to install pip. And there is also `pip_cmd1 which should be specified as well. But, why it so?\r\n\r\nWhy don't fabtools just run pip as installed package, e.g. `<python_cmd> -m pip xxx` ?\r\n"}}
{"actor":{"display_login":"bialix"}}