{"action":"created","comment":{"url":"https://api.github.com/repos/bazelbuild/rules_python/pulls/comments/345388665","pull_request_review_id":315771048,"id":345388665,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0NTM4ODY2NQ==","diff_hunk":"@@ -102,6 +102,20 @@ py_binary(\n \"\"\",\n )\n \n+def pip2_import(**kwargs):\n+    \"\"\"A wrapper around pip_import that uses the `python2` system command.\"\"\"\n+    # We don't advertise \"Use this for PY2 programs\" because it's not clear\n+    # whether this alias is always available, and on most (but not all) systems\n+    # `python` is Python 2 anyway.\n+    pip_import(python_interpreter = \"python2\", **kwargs)","path":"python/pip.bzl","position":9,"original_position":9,"commit_id":"0a69508a95fea1f021e716c0ea71c7143ca4b20c","original_commit_id":"0a69508a95fea1f021e716c0ea71c7143ca4b20c","user":{"login":"keith","id":283886,"node_id":"MDQ6VXNlcjI4Mzg4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/283886?v=4","gravatar_id":"","url":"https://api.github.com/users/keith","html_url":"https://github.com/keith","followers_url":"https://api.github.com/users/keith/followers","following_url":"https://api.github.com/users/keith/following{/other_user}","gists_url":"https://api.github.com/users/keith/gists{/gist_id}","starred_url":"https://api.github.com/users/keith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keith/subscriptions","organizations_url":"https://api.github.com/users/keith/orgs","repos_url":"https://api.github.com/users/keith/repos","events_url":"https://api.github.com/users/keith/events{/privacy}","received_events_url":"https://api.github.com/users/keith/received_events","type":"User","site_admin":false},"body":"This won't work on macOS I guess","created_at":"2019-11-12T19:04:03Z","updated_at":"2019-11-12T19:04:09Z","html_url":"https://github.com/bazelbuild/rules_python/pull/256#discussion_r345388665","pull_request_url":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bazelbuild/rules_python/pulls/comments/345388665"},"html":{"href":"https://github.com/bazelbuild/rules_python/pull/256#discussion_r345388665"},"pull_request":{"href":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256","id":340060496,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQwMDYwNDk2","html_url":"https://github.com/bazelbuild/rules_python/pull/256","diff_url":"https://github.com/bazelbuild/rules_python/pull/256.diff","patch_url":"https://github.com/bazelbuild/rules_python/pull/256.patch","issue_url":"https://api.github.com/repos/bazelbuild/rules_python/issues/256","number":256,"state":"open","locked":false,"title":"Add pip3_import","user":{"login":"brandjon","id":1308070,"node_id":"MDQ6VXNlcjEzMDgwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1308070?v=4","gravatar_id":"","url":"https://api.github.com/users/brandjon","html_url":"https://github.com/brandjon","followers_url":"https://api.github.com/users/brandjon/followers","following_url":"https://api.github.com/users/brandjon/following{/other_user}","gists_url":"https://api.github.com/users/brandjon/gists{/gist_id}","starred_url":"https://api.github.com/users/brandjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandjon/subscriptions","organizations_url":"https://api.github.com/users/brandjon/orgs","repos_url":"https://api.github.com/users/brandjon/repos","events_url":"https://api.github.com/users/brandjon/events{/privacy}","received_events_url":"https://api.github.com/users/brandjon/received_events","type":"User","site_admin":false},"body":"Add `pip3_import` as a macro built on the new `python_interpreter` attribute to `pip_import`.\r\n\r\nFixes #33. Closes #85. Work toward #249.","created_at":"2019-11-12T18:56:34Z","updated_at":"2019-11-12T19:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5784fb96c4fe85edf8e60568ee433ad15db5ce28","assignee":{"login":"brandjon","id":1308070,"node_id":"MDQ6VXNlcjEzMDgwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1308070?v=4","gravatar_id":"","url":"https://api.github.com/users/brandjon","html_url":"https://github.com/brandjon","followers_url":"https://api.github.com/users/brandjon/followers","following_url":"https://api.github.com/users/brandjon/following{/other_user}","gists_url":"https://api.github.com/users/brandjon/gists{/gist_id}","starred_url":"https://api.github.com/users/brandjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandjon/subscriptions","organizations_url":"https://api.github.com/users/brandjon/orgs","repos_url":"https://api.github.com/users/brandjon/repos","events_url":"https://api.github.com/users/brandjon/events{/privacy}","received_events_url":"https://api.github.com/users/brandjon/received_events","type":"User","site_admin":false},"assignees":[{"login":"brandjon","id":1308070,"node_id":"MDQ6VXNlcjEzMDgwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1308070?v=4","gravatar_id":"","url":"https://api.github.com/users/brandjon","html_url":"https://github.com/brandjon","followers_url":"https://api.github.com/users/brandjon/followers","following_url":"https://api.github.com/users/brandjon/following{/other_user}","gists_url":"https://api.github.com/users/brandjon/gists{/gist_id}","starred_url":"https://api.github.com/users/brandjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandjon/subscriptions","organizations_url":"https://api.github.com/users/brandjon/orgs","repos_url":"https://api.github.com/users/brandjon/repos","events_url":"https://api.github.com/users/brandjon/events{/privacy}","received_events_url":"https://api.github.com/users/brandjon/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"lberki","id":3524818,"node_id":"MDQ6VXNlcjM1MjQ4MTg=","avatar_url":"https://avatars1.githubusercontent.com/u/3524818?v=4","gravatar_id":"","url":"https://api.github.com/users/lberki","html_url":"https://github.com/lberki","followers_url":"https://api.github.com/users/lberki/followers","following_url":"https://api.github.com/users/lberki/following{/other_user}","gists_url":"https://api.github.com/users/lberki/gists{/gist_id}","starred_url":"https://api.github.com/users/lberki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lberki/subscriptions","organizations_url":"https://api.github.com/users/lberki/orgs","repos_url":"https://api.github.com/users/lberki/repos","events_url":"https://api.github.com/users/lberki/events{/privacy}","received_events_url":"https://api.github.com/users/lberki/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":684778977,"node_id":"MDU6TGFiZWw2ODQ3Nzg5Nzc=","url":"https://api.github.com/repos/bazelbuild/rules_python/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256/commits","review_comments_url":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256/comments","review_comment_url":"https://api.github.com/repos/bazelbuild/rules_python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bazelbuild/rules_python/issues/256/comments","statuses_url":"https://api.github.com/repos/bazelbuild/rules_python/statuses/0a69508a95fea1f021e716c0ea71c7143ca4b20c","head":{"label":"brandjon:pip3","ref":"pip3","sha":"0a69508a95fea1f021e716c0ea71c7143ca4b20c","user":{"login":"brandjon","id":1308070,"node_id":"MDQ6VXNlcjEzMDgwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1308070?v=4","gravatar_id":"","url":"https://api.github.com/users/brandjon","html_url":"https://github.com/brandjon","followers_url":"https://api.github.com/users/brandjon/followers","following_url":"https://api.github.com/users/brandjon/following{/other_user}","gists_url":"https://api.github.com/users/brandjon/gists{/gist_id}","starred_url":"https://api.github.com/users/brandjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandjon/subscriptions","organizations_url":"https://api.github.com/users/brandjon/orgs","repos_url":"https://api.github.com/users/brandjon/repos","events_url":"https://api.github.com/users/brandjon/events{/privacy}","received_events_url":"https://api.github.com/users/brandjon/received_events","type":"User","site_admin":false},"repo":{"id":197079916,"node_id":"MDEwOlJlcG9zaXRvcnkxOTcwNzk5MTY=","name":"rules_python","full_name":"brandjon/rules_python","private":false,"owner":{"login":"brandjon","id":1308070,"node_id":"MDQ6VXNlcjEzMDgwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1308070?v=4","gravatar_id":"","url":"https://api.github.com/users/brandjon","html_url":"https://github.com/brandjon","followers_url":"https://api.github.com/users/brandjon/followers","following_url":"https://api.github.com/users/brandjon/following{/other_user}","gists_url":"https://api.github.com/users/brandjon/gists{/gist_id}","starred_url":"https://api.github.com/users/brandjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandjon/subscriptions","organizations_url":"https://api.github.com/users/brandjon/orgs","repos_url":"https://api.github.com/users/brandjon/repos","events_url":"https://api.github.com/users/brandjon/events{/privacy}","received_events_url":"https://api.github.com/users/brandjon/received_events","type":"User","site_admin":false},"html_url":"https://github.com/brandjon/rules_python","description":"Experimental Bazel Python Rules","fork":true,"url":"https://api.github.com/repos/brandjon/rules_python","forks_url":"https://api.github.com/repos/brandjon/rules_python/forks","keys_url":"https://api.github.com/repos/brandjon/rules_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandjon/rules_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandjon/rules_python/teams","hooks_url":"https://api.github.com/repos/brandjon/rules_python/hooks","issue_events_url":"https://api.github.com/repos/brandjon/rules_python/issues/events{/number}","events_url":"https://api.github.com/repos/brandjon/rules_python/events","assignees_url":"https://api.github.com/repos/brandjon/rules_python/assignees{/user}","branches_url":"https://api.github.com/repos/brandjon/rules_python/branches{/branch}","tags_url":"https://api.github.com/repos/brandjon/rules_python/tags","blobs_url":"https://api.github.com/repos/brandjon/rules_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandjon/rules_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandjon/rules_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandjon/rules_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandjon/rules_python/statuses/{sha}","languages_url":"https://api.github.com/repos/brandjon/rules_python/languages","stargazers_url":"https://api.github.com/repos/brandjon/rules_python/stargazers","contributors_url":"https://api.github.com/repos/brandjon/rules_python/contributors","subscribers_url":"https://api.github.com/repos/brandjon/rules_python/subscribers","subscription_url":"https://api.github.com/repos/brandjon/rules_python/subscription","commits_url":"https://api.github.com/repos/brandjon/rules_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandjon/rules_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandjon/rules_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandjon/rules_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandjon/rules_python/contents/{+path}","compare_url":"https://api.github.com/repos/brandjon/rules_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandjon/rules_python/merges","archive_url":"https://api.github.com/repos/brandjon/rules_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandjon/rules_python/downloads","issues_url":"https://api.github.com/repos/brandjon/rules_python/issues{/number}","pulls_url":"https://api.github.com/repos/brandjon/rules_python/pulls{/number}","milestones_url":"https://api.github.com/repos/brandjon/rules_python/milestones{/number}","notifications_url":"https://api.github.com/repos/brandjon/rules_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandjon/rules_python/labels{/name}","releases_url":"https://api.github.com/repos/brandjon/rules_python/releases{/id}","deployments_url":"https://api.github.com/repos/brandjon/rules_python/deployments","created_at":"2019-07-15T22:19:08Z","updated_at":"2019-11-04T18:12:23Z","pushed_at":"2019-11-11T20:43:23Z","git_url":"git://github.com/brandjon/rules_python.git","ssh_url":"git@github.com:brandjon/rules_python.git","clone_url":"https://github.com/brandjon/rules_python.git","svn_url":"https://github.com/brandjon/rules_python","homepage":"","size":8821,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bazelbuild:master","ref":"master","sha":"7b222cfdb4e59b9fd2a609e1fbb233e94fdcde7c","user":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"repo":{"id":101780532,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE3ODA1MzI=","name":"rules_python","full_name":"bazelbuild/rules_python","private":false,"owner":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bazelbuild/rules_python","description":"Experimental Bazel Python Rules","fork":false,"url":"https://api.github.com/repos/bazelbuild/rules_python","forks_url":"https://api.github.com/repos/bazelbuild/rules_python/forks","keys_url":"https://api.github.com/repos/bazelbuild/rules_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazelbuild/rules_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazelbuild/rules_python/teams","hooks_url":"https://api.github.com/repos/bazelbuild/rules_python/hooks","issue_events_url":"https://api.github.com/repos/bazelbuild/rules_python/issues/events{/number}","events_url":"https://api.github.com/repos/bazelbuild/rules_python/events","assignees_url":"https://api.github.com/repos/bazelbuild/rules_python/assignees{/user}","branches_url":"https://api.github.com/repos/bazelbuild/rules_python/branches{/branch}","tags_url":"https://api.github.com/repos/bazelbuild/rules_python/tags","blobs_url":"https://api.github.com/repos/bazelbuild/rules_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazelbuild/rules_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazelbuild/rules_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazelbuild/rules_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazelbuild/rules_python/statuses/{sha}","languages_url":"https://api.github.com/repos/bazelbuild/rules_python/languages","stargazers_url":"https://api.github.com/repos/bazelbuild/rules_python/stargazers","contributors_url":"https://api.github.com/repos/bazelbuild/rules_python/contributors","subscribers_url":"https://api.github.com/repos/bazelbuild/rules_python/subscribers","subscription_url":"https://api.github.com/repos/bazelbuild/rules_python/subscription","commits_url":"https://api.github.com/repos/bazelbuild/rules_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazelbuild/rules_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazelbuild/rules_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazelbuild/rules_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazelbuild/rules_python/contents/{+path}","compare_url":"https://api.github.com/repos/bazelbuild/rules_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazelbuild/rules_python/merges","archive_url":"https://api.github.com/repos/bazelbuild/rules_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazelbuild/rules_python/downloads","issues_url":"https://api.github.com/repos/bazelbuild/rules_python/issues{/number}","pulls_url":"https://api.github.com/repos/bazelbuild/rules_python/pulls{/number}","milestones_url":"https://api.github.com/repos/bazelbuild/rules_python/milestones{/number}","notifications_url":"https://api.github.com/repos/bazelbuild/rules_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazelbuild/rules_python/labels{/name}","releases_url":"https://api.github.com/repos/bazelbuild/rules_python/releases{/id}","deployments_url":"https://api.github.com/repos/bazelbuild/rules_python/deployments","created_at":"2017-08-29T16:05:33Z","updated_at":"2019-11-12T15:22:21Z","pushed_at":"2019-11-12T18:56:35Z","git_url":"git://github.com/bazelbuild/rules_python.git","ssh_url":"git@github.com:bazelbuild/rules_python.git","clone_url":"https://github.com/bazelbuild/rules_python.git","svn_url":"https://github.com/bazelbuild/rules_python","homepage":"","size":8809,"stargazers_count":131,"watchers_count":131,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":196,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":103,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":196,"open_issues":103,"watchers":131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256"},"html":{"href":"https://github.com/bazelbuild/rules_python/pull/256"},"issue":{"href":"https://api.github.com/repos/bazelbuild/rules_python/issues/256"},"comments":{"href":"https://api.github.com/repos/bazelbuild/rules_python/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256/comments"},"review_comment":{"href":"https://api.github.com/repos/bazelbuild/rules_python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bazelbuild/rules_python/pulls/256/commits"},"statuses":{"href":"https://api.github.com/repos/bazelbuild/rules_python/statuses/0a69508a95fea1f021e716c0ea71c7143ca4b20c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"keith"}}