{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/42052860","id":42052860,"diff_hunk":"@@ -100,3 +100,47 @@ else\n   # Mac OS.\n   export CHROME_BIN=\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\"\n fi\n+\n+# Check the version of Python. If its version does not start with 2.7, then","path":"scripts/setup.sh","position":5,"original_position":5,"commit_id":"b1333f5c5a36b0e32409dda240777341f01d0485","original_commit_id":"b1333f5c5a36b0e32409dda240777341f01d0485","user":{"login":"BenHenning","id":12983742,"avatar_url":"https://avatars.githubusercontent.com/u/12983742?v=3","gravatar_id":"","url":"https://api.github.com/users/BenHenning","html_url":"https://github.com/BenHenning","followers_url":"https://api.github.com/users/BenHenning/followers","following_url":"https://api.github.com/users/BenHenning/following{/other_user}","gists_url":"https://api.github.com/users/BenHenning/gists{/gist_id}","starred_url":"https://api.github.com/users/BenHenning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenHenning/subscriptions","organizations_url":"https://api.github.com/users/BenHenning/orgs","repos_url":"https://api.github.com/users/BenHenning/repos","events_url":"https://api.github.com/users/BenHenning/events{/privacy}","received_events_url":"https://api.github.com/users/BenHenning/received_events","type":"User","site_admin":false},"body":"Nit: This function is really just checking the version of Python. It might be worth noting what happens if the version is not 2.7 in the code below, where that logic exists (perhaps instead of the comment on line 127). Also, it would be good to mention that this function takes a command as input and returns true (1)/false (0) depending on whether the given command exists and that it is Python version 2.7.","created_at":"2015-10-14T21:04:00Z","updated_at":"2015-10-14T21:04:00Z","html_url":"https://github.com/oppia/oppia/pull/1007#discussion_r42052860","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/1007","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/42052860"},"html":{"href":"https://github.com/oppia/oppia/pull/1007#discussion_r42052860"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1007"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/1007","id":46715682,"html_url":"https://github.com/oppia/oppia/pull/1007","diff_url":"https://github.com/oppia/oppia/pull/1007.diff","patch_url":"https://github.com/oppia/oppia/pull/1007.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/1007","number":1007,"state":"open","locked":false,"title":"Checking for python 2.7 in scripts/start.sh, qutting if not available…","user":{"login":"bbriggs","id":2350379,"avatar_url":"https://avatars.githubusercontent.com/u/2350379?v=3","gravatar_id":"","url":"https://api.github.com/users/bbriggs","html_url":"https://github.com/bbriggs","followers_url":"https://api.github.com/users/bbriggs/followers","following_url":"https://api.github.com/users/bbriggs/following{/other_user}","gists_url":"https://api.github.com/users/bbriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/bbriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbriggs/subscriptions","organizations_url":"https://api.github.com/users/bbriggs/orgs","repos_url":"https://api.github.com/users/bbriggs/repos","events_url":"https://api.github.com/users/bbriggs/events{/privacy}","received_events_url":"https://api.github.com/users/bbriggs/received_events","type":"User","site_admin":false},"body":"A simple check for python version 2.7. As the issue requests, this checks specifically for version 2.7 and nothing else and assigns either `python` or `python2.7` to the PYTHON_CMD variable.  Issue #972.","created_at":"2015-10-03T23:33:37Z","updated_at":"2015-10-14T21:04:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84d25e324da93ba0d12396897e080a602fce9677","assignee":{"login":"BenHenning","id":12983742,"avatar_url":"https://avatars.githubusercontent.com/u/12983742?v=3","gravatar_id":"","url":"https://api.github.com/users/BenHenning","html_url":"https://github.com/BenHenning","followers_url":"https://api.github.com/users/BenHenning/followers","following_url":"https://api.github.com/users/BenHenning/following{/other_user}","gists_url":"https://api.github.com/users/BenHenning/gists{/gist_id}","starred_url":"https://api.github.com/users/BenHenning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenHenning/subscriptions","organizations_url":"https://api.github.com/users/BenHenning/orgs","repos_url":"https://api.github.com/users/BenHenning/repos","events_url":"https://api.github.com/users/BenHenning/events{/privacy}","received_events_url":"https://api.github.com/users/BenHenning/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/1007/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/1007/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/1007/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/b1333f5c5a36b0e32409dda240777341f01d0485","head":{"label":"bbriggs:python-version","ref":"python-version","sha":"b1333f5c5a36b0e32409dda240777341f01d0485","user":{"login":"bbriggs","id":2350379,"avatar_url":"https://avatars.githubusercontent.com/u/2350379?v=3","gravatar_id":"","url":"https://api.github.com/users/bbriggs","html_url":"https://github.com/bbriggs","followers_url":"https://api.github.com/users/bbriggs/followers","following_url":"https://api.github.com/users/bbriggs/following{/other_user}","gists_url":"https://api.github.com/users/bbriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/bbriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbriggs/subscriptions","organizations_url":"https://api.github.com/users/bbriggs/orgs","repos_url":"https://api.github.com/users/bbriggs/repos","events_url":"https://api.github.com/users/bbriggs/events{/privacy}","received_events_url":"https://api.github.com/users/bbriggs/received_events","type":"User","site_admin":false},"repo":{"id":43617873,"name":"oppia","full_name":"bbriggs/oppia","owner":{"login":"bbriggs","id":2350379,"avatar_url":"https://avatars.githubusercontent.com/u/2350379?v=3","gravatar_id":"","url":"https://api.github.com/users/bbriggs","html_url":"https://github.com/bbriggs","followers_url":"https://api.github.com/users/bbriggs/followers","following_url":"https://api.github.com/users/bbriggs/following{/other_user}","gists_url":"https://api.github.com/users/bbriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/bbriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbriggs/subscriptions","organizations_url":"https://api.github.com/users/bbriggs/orgs","repos_url":"https://api.github.com/users/bbriggs/repos","events_url":"https://api.github.com/users/bbriggs/events{/privacy}","received_events_url":"https://api.github.com/users/bbriggs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbriggs/oppia","description":"Tool for collaboratively building interactive tutors.","fork":true,"url":"https://api.github.com/repos/bbriggs/oppia","forks_url":"https://api.github.com/repos/bbriggs/oppia/forks","keys_url":"https://api.github.com/repos/bbriggs/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbriggs/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbriggs/oppia/teams","hooks_url":"https://api.github.com/repos/bbriggs/oppia/hooks","issue_events_url":"https://api.github.com/repos/bbriggs/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/bbriggs/oppia/events","assignees_url":"https://api.github.com/repos/bbriggs/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/bbriggs/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/bbriggs/oppia/tags","blobs_url":"https://api.github.com/repos/bbriggs/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbriggs/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbriggs/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbriggs/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbriggs/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/bbriggs/oppia/languages","stargazers_url":"https://api.github.com/repos/bbriggs/oppia/stargazers","contributors_url":"https://api.github.com/repos/bbriggs/oppia/contributors","subscribers_url":"https://api.github.com/repos/bbriggs/oppia/subscribers","subscription_url":"https://api.github.com/repos/bbriggs/oppia/subscription","commits_url":"https://api.github.com/repos/bbriggs/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbriggs/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbriggs/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbriggs/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbriggs/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/bbriggs/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbriggs/oppia/merges","archive_url":"https://api.github.com/repos/bbriggs/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbriggs/oppia/downloads","issues_url":"https://api.github.com/repos/bbriggs/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/bbriggs/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/bbriggs/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/bbriggs/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbriggs/oppia/labels{/name}","releases_url":"https://api.github.com/repos/bbriggs/oppia/releases{/id}","created_at":"2015-10-03T22:55:34Z","updated_at":"2015-10-03T22:55:38Z","pushed_at":"2015-10-14T20:08:29Z","git_url":"git://github.com/bbriggs/oppia.git","ssh_url":"git@github.com:bbriggs/oppia.git","clone_url":"https://github.com/bbriggs/oppia.git","svn_url":"https://github.com/bbriggs/oppia","homepage":"https://www.oppia.org","size":37344,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"71d09240828ffb542fc9f76b9052c3aa23a25885","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive tutors.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","created_at":"2015-08-14T00:16:14Z","updated_at":"2015-10-06T09:18:56Z","pushed_at":"2015-10-14T20:08:29Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":43888,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":178,"forks":60,"open_issues":178,"watchers":44,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1007"},"html":{"href":"https://github.com/oppia/oppia/pull/1007"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/1007"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/1007/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1007/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1007/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/b1333f5c5a36b0e32409dda240777341f01d0485"}}}}