{"action":"created","comment":{"url":"https://api.github.com/repos/scrapinghub/shub/pulls/comments/32340463","id":32340463,"diff_hunk":"@@ -131,7 +131,13 @@ def _ext(file_path):\n \n def build_and_deploy_egg(project_id):\n     \"\"\"Builds and deploys the current dir's egg\"\"\"\n-    run('python setup.py bdist_egg')\n+    log(\"Building egg in: %s\" % os.getcwd())\n+    try:\n+        run('python setup.py bdist_egg')\n+    except CalledProcessError:\n+        # maybe a C extension or distutils package, forcing bdist_egg","path":"shub/utils.py","position":18,"original_position":18,"commit_id":"fbca686f15f10274104de2bf6a317be101c2a45f","original_commit_id":"fa1044ed358825bbe9fed9c1918c97047412e164","user":{"login":"josericardo","id":1643580,"avatar_url":"https://avatars.githubusercontent.com/u/1643580?v=3","gravatar_id":"","url":"https://api.github.com/users/josericardo","html_url":"https://github.com/josericardo","followers_url":"https://api.github.com/users/josericardo/followers","following_url":"https://api.github.com/users/josericardo/following{/other_user}","gists_url":"https://api.github.com/users/josericardo/gists{/gist_id}","starred_url":"https://api.github.com/users/josericardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josericardo/subscriptions","organizations_url":"https://api.github.com/users/josericardo/orgs","repos_url":"https://api.github.com/users/josericardo/repos","events_url":"https://api.github.com/users/josericardo/events{/privacy}","received_events_url":"https://api.github.com/users/josericardo/received_events","type":"User","site_admin":false},"body":"Cool, updated.","created_at":"2015-06-12T18:15:44Z","updated_at":"2015-06-12T18:15:44Z","html_url":"https://github.com/scrapinghub/shub/pull/22#discussion_r32340463","pull_request_url":"https://api.github.com/repos/scrapinghub/shub/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/scrapinghub/shub/pulls/comments/32340463"},"html":{"href":"https://github.com/scrapinghub/shub/pull/22#discussion_r32340463"},"pull_request":{"href":"https://api.github.com/repos/scrapinghub/shub/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/scrapinghub/shub/pulls/22","id":37560047,"html_url":"https://github.com/scrapinghub/shub/pull/22","diff_url":"https://github.com/scrapinghub/shub/pull/22.diff","patch_url":"https://github.com/scrapinghub/shub/pull/22.patch","issue_url":"https://api.github.com/repos/scrapinghub/shub/issues/22","number":22,"state":"open","locked":false,"title":"Force bdist_egg on utils#build_and_deploy_egg","user":{"login":"josericardo","id":1643580,"avatar_url":"https://avatars.githubusercontent.com/u/1643580?v=3","gravatar_id":"","url":"https://api.github.com/users/josericardo","html_url":"https://github.com/josericardo","followers_url":"https://api.github.com/users/josericardo/followers","following_url":"https://api.github.com/users/josericardo/following{/other_user}","gists_url":"https://api.github.com/users/josericardo/gists{/gist_id}","starred_url":"https://api.github.com/users/josericardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josericardo/subscriptions","organizations_url":"https://api.github.com/users/josericardo/orgs","repos_url":"https://api.github.com/users/josericardo/repos","events_url":"https://api.github.com/users/josericardo/events{/privacy}","received_events_url":"https://api.github.com/users/josericardo/received_events","type":"User","site_admin":false},"body":"In case setup.py doesn't provide a bdist_egg command. Some native\r\nextensions and packages built using distutils don't have it, for\r\nexample.\r\n\r\nWe weren't being able to deploy packages like PyYAML, for example.","created_at":"2015-06-12T13:03:12Z","updated_at":"2015-06-12T18:15:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1bb646715d2231919cded07d10995d8b71ca7b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scrapinghub/shub/pulls/22/commits","review_comments_url":"https://api.github.com/repos/scrapinghub/shub/pulls/22/comments","review_comment_url":"https://api.github.com/repos/scrapinghub/shub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scrapinghub/shub/issues/22/comments","statuses_url":"https://api.github.com/repos/scrapinghub/shub/statuses/fbca686f15f10274104de2bf6a317be101c2a45f","head":{"label":"scrapinghub:force-bdist","ref":"force-bdist","sha":"fbca686f15f10274104de2bf6a317be101c2a45f","user":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"repo":{"id":20890335,"name":"shub","full_name":"scrapinghub/shub","owner":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scrapinghub/shub","description":"Scrapinghub Command Line Client","fork":false,"url":"https://api.github.com/repos/scrapinghub/shub","forks_url":"https://api.github.com/repos/scrapinghub/shub/forks","keys_url":"https://api.github.com/repos/scrapinghub/shub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrapinghub/shub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrapinghub/shub/teams","hooks_url":"https://api.github.com/repos/scrapinghub/shub/hooks","issue_events_url":"https://api.github.com/repos/scrapinghub/shub/issues/events{/number}","events_url":"https://api.github.com/repos/scrapinghub/shub/events","assignees_url":"https://api.github.com/repos/scrapinghub/shub/assignees{/user}","branches_url":"https://api.github.com/repos/scrapinghub/shub/branches{/branch}","tags_url":"https://api.github.com/repos/scrapinghub/shub/tags","blobs_url":"https://api.github.com/repos/scrapinghub/shub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrapinghub/shub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrapinghub/shub/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrapinghub/shub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrapinghub/shub/statuses/{sha}","languages_url":"https://api.github.com/repos/scrapinghub/shub/languages","stargazers_url":"https://api.github.com/repos/scrapinghub/shub/stargazers","contributors_url":"https://api.github.com/repos/scrapinghub/shub/contributors","subscribers_url":"https://api.github.com/repos/scrapinghub/shub/subscribers","subscription_url":"https://api.github.com/repos/scrapinghub/shub/subscription","commits_url":"https://api.github.com/repos/scrapinghub/shub/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrapinghub/shub/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrapinghub/shub/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrapinghub/shub/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrapinghub/shub/contents/{+path}","compare_url":"https://api.github.com/repos/scrapinghub/shub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrapinghub/shub/merges","archive_url":"https://api.github.com/repos/scrapinghub/shub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrapinghub/shub/downloads","issues_url":"https://api.github.com/repos/scrapinghub/shub/issues{/number}","pulls_url":"https://api.github.com/repos/scrapinghub/shub/pulls{/number}","milestones_url":"https://api.github.com/repos/scrapinghub/shub/milestones{/number}","notifications_url":"https://api.github.com/repos/scrapinghub/shub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrapinghub/shub/labels{/name}","releases_url":"https://api.github.com/repos/scrapinghub/shub/releases{/id}","created_at":"2014-06-16T15:38:11Z","updated_at":"2015-06-06T18:44:53Z","pushed_at":"2015-06-12T18:15:21Z","git_url":"git://github.com/scrapinghub/shub.git","ssh_url":"git@github.com:scrapinghub/shub.git","clone_url":"https://github.com/scrapinghub/shub.git","svn_url":"https://github.com/scrapinghub/shub","homepage":"http://doc.scrapinghub.com/shub.html","size":609,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":8,"default_branch":"master"}},"base":{"label":"scrapinghub:master","ref":"master","sha":"573d5a7b3d0b976662d62426d34c150ae89ef2e0","user":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"repo":{"id":20890335,"name":"shub","full_name":"scrapinghub/shub","owner":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scrapinghub/shub","description":"Scrapinghub Command Line Client","fork":false,"url":"https://api.github.com/repos/scrapinghub/shub","forks_url":"https://api.github.com/repos/scrapinghub/shub/forks","keys_url":"https://api.github.com/repos/scrapinghub/shub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrapinghub/shub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrapinghub/shub/teams","hooks_url":"https://api.github.com/repos/scrapinghub/shub/hooks","issue_events_url":"https://api.github.com/repos/scrapinghub/shub/issues/events{/number}","events_url":"https://api.github.com/repos/scrapinghub/shub/events","assignees_url":"https://api.github.com/repos/scrapinghub/shub/assignees{/user}","branches_url":"https://api.github.com/repos/scrapinghub/shub/branches{/branch}","tags_url":"https://api.github.com/repos/scrapinghub/shub/tags","blobs_url":"https://api.github.com/repos/scrapinghub/shub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrapinghub/shub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrapinghub/shub/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrapinghub/shub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrapinghub/shub/statuses/{sha}","languages_url":"https://api.github.com/repos/scrapinghub/shub/languages","stargazers_url":"https://api.github.com/repos/scrapinghub/shub/stargazers","contributors_url":"https://api.github.com/repos/scrapinghub/shub/contributors","subscribers_url":"https://api.github.com/repos/scrapinghub/shub/subscribers","subscription_url":"https://api.github.com/repos/scrapinghub/shub/subscription","commits_url":"https://api.github.com/repos/scrapinghub/shub/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrapinghub/shub/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrapinghub/shub/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrapinghub/shub/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrapinghub/shub/contents/{+path}","compare_url":"https://api.github.com/repos/scrapinghub/shub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrapinghub/shub/merges","archive_url":"https://api.github.com/repos/scrapinghub/shub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrapinghub/shub/downloads","issues_url":"https://api.github.com/repos/scrapinghub/shub/issues{/number}","pulls_url":"https://api.github.com/repos/scrapinghub/shub/pulls{/number}","milestones_url":"https://api.github.com/repos/scrapinghub/shub/milestones{/number}","notifications_url":"https://api.github.com/repos/scrapinghub/shub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrapinghub/shub/labels{/name}","releases_url":"https://api.github.com/repos/scrapinghub/shub/releases{/id}","created_at":"2014-06-16T15:38:11Z","updated_at":"2015-06-06T18:44:53Z","pushed_at":"2015-06-12T18:15:21Z","git_url":"git://github.com/scrapinghub/shub.git","ssh_url":"git@github.com:scrapinghub/shub.git","clone_url":"https://github.com/scrapinghub/shub.git","svn_url":"https://github.com/scrapinghub/shub","homepage":"http://doc.scrapinghub.com/shub.html","size":609,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scrapinghub/shub/pulls/22"},"html":{"href":"https://github.com/scrapinghub/shub/pull/22"},"issue":{"href":"https://api.github.com/repos/scrapinghub/shub/issues/22"},"comments":{"href":"https://api.github.com/repos/scrapinghub/shub/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/scrapinghub/shub/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/scrapinghub/shub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scrapinghub/shub/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/scrapinghub/shub/statuses/fbca686f15f10274104de2bf6a317be101c2a45f"}}}}