{"action":"created","comment":{"url":"https://api.github.com/repos/pypa/pip/pulls/comments/41288238","id":41288238,"diff_hunk":"@@ -421,6 +421,14 @@ def run_egg_info(self):\n                     self.pkg_info()[\"Version\"],\n                 ]))\n             self._correct_build_location()\n+        else:\n+            metadata_name = canonicalize_name(self.pkg_info()[\"Name\"])\n+            if canonicalize_name(self.req.project_name) != metadata_name:\n+                raise InstallationError(\n+                    'Running setup.py (path:%s) egg_info for package %s '","path":"pip/req/req_install.py","position":17,"original_position":17,"commit_id":"7e02e5c4f890c45c15243b04985a4a9c1700a37b","original_commit_id":"7e02e5c4f890c45c15243b04985a4a9c1700a37b","user":{"login":"qwcode","id":1052224,"avatar_url":"https://avatars.githubusercontent.com/u/1052224?v=3","gravatar_id":"","url":"https://api.github.com/users/qwcode","html_url":"https://github.com/qwcode","followers_url":"https://api.github.com/users/qwcode/followers","following_url":"https://api.github.com/users/qwcode/following{/other_user}","gists_url":"https://api.github.com/users/qwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/qwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwcode/subscriptions","organizations_url":"https://api.github.com/users/qwcode/orgs","repos_url":"https://api.github.com/users/qwcode/repos","events_url":"https://api.github.com/users/qwcode/events{/privacy}","received_events_url":"https://api.github.com/users/qwcode/received_events","type":"User","site_admin":false},"body":"I know this after merge, but thinking the message should mention the url (if present) with the #egg fragment, or otherwise I'm not sure people will connect the dots that the problem is simply due to the fragment being wrong.","created_at":"2015-10-06T16:31:33Z","updated_at":"2015-10-06T16:31:33Z","html_url":"https://github.com/pypa/pip/pull/3153#discussion_r41288238","pull_request_url":"https://api.github.com/repos/pypa/pip/pulls/3153","_links":{"self":{"href":"https://api.github.com/repos/pypa/pip/pulls/comments/41288238"},"html":{"href":"https://github.com/pypa/pip/pull/3153#discussion_r41288238"},"pull_request":{"href":"https://api.github.com/repos/pypa/pip/pulls/3153"}}},"pull_request":{"url":"https://api.github.com/repos/pypa/pip/pulls/3153","id":46449736,"html_url":"https://github.com/pypa/pip/pull/3153","diff_url":"https://github.com/pypa/pip/pull/3153.diff","patch_url":"https://github.com/pypa/pip/pull/3153.patch","issue_url":"https://api.github.com/repos/pypa/pip/issues/3153","number":3153,"state":"closed","locked":false,"title":"Abort installation on metadata mismatch","user":{"login":"xavfernandez","id":1089744,"avatar_url":"https://avatars.githubusercontent.com/u/1089744?v=3","gravatar_id":"","url":"https://api.github.com/users/xavfernandez","html_url":"https://github.com/xavfernandez","followers_url":"https://api.github.com/users/xavfernandez/followers","following_url":"https://api.github.com/users/xavfernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavfernandez/subscriptions","organizations_url":"https://api.github.com/users/xavfernandez/orgs","repos_url":"https://api.github.com/users/xavfernandez/repos","events_url":"https://api.github.com/users/xavfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavfernandez/received_events","type":"User","site_admin":false},"body":"If setup.py egg_info produces metadata for a different project name than\r\nself.req.project_name, abort the installation.\r\nFixes #3143","created_at":"2015-09-30T20:07:48Z","updated_at":"2015-10-06T16:31:33Z","closed_at":"2015-10-05T21:54:09Z","merged_at":"2015-10-05T21:54:09Z","merge_commit_sha":"563dd6873e43f01199feaa1b0fb4313091198c4d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pypa/pip/pulls/3153/commits","review_comments_url":"https://api.github.com/repos/pypa/pip/pulls/3153/comments","review_comment_url":"https://api.github.com/repos/pypa/pip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pypa/pip/issues/3153/comments","statuses_url":"https://api.github.com/repos/pypa/pip/statuses/7e02e5c4f890c45c15243b04985a4a9c1700a37b","head":{"label":"xavfernandez:error_project_name_mismatch","ref":"error_project_name_mismatch","sha":"7e02e5c4f890c45c15243b04985a4a9c1700a37b","user":{"login":"xavfernandez","id":1089744,"avatar_url":"https://avatars.githubusercontent.com/u/1089744?v=3","gravatar_id":"","url":"https://api.github.com/users/xavfernandez","html_url":"https://github.com/xavfernandez","followers_url":"https://api.github.com/users/xavfernandez/followers","following_url":"https://api.github.com/users/xavfernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavfernandez/subscriptions","organizations_url":"https://api.github.com/users/xavfernandez/orgs","repos_url":"https://api.github.com/users/xavfernandez/repos","events_url":"https://api.github.com/users/xavfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavfernandez/received_events","type":"User","site_admin":false},"repo":{"id":19851562,"name":"pip","full_name":"xavfernandez/pip","owner":{"login":"xavfernandez","id":1089744,"avatar_url":"https://avatars.githubusercontent.com/u/1089744?v=3","gravatar_id":"","url":"https://api.github.com/users/xavfernandez","html_url":"https://github.com/xavfernandez","followers_url":"https://api.github.com/users/xavfernandez/followers","following_url":"https://api.github.com/users/xavfernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavfernandez/subscriptions","organizations_url":"https://api.github.com/users/xavfernandez/orgs","repos_url":"https://api.github.com/users/xavfernandez/repos","events_url":"https://api.github.com/users/xavfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavfernandez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xavfernandez/pip","description":"The PyPA recommended tool for installing Python packages","fork":true,"url":"https://api.github.com/repos/xavfernandez/pip","forks_url":"https://api.github.com/repos/xavfernandez/pip/forks","keys_url":"https://api.github.com/repos/xavfernandez/pip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xavfernandez/pip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xavfernandez/pip/teams","hooks_url":"https://api.github.com/repos/xavfernandez/pip/hooks","issue_events_url":"https://api.github.com/repos/xavfernandez/pip/issues/events{/number}","events_url":"https://api.github.com/repos/xavfernandez/pip/events","assignees_url":"https://api.github.com/repos/xavfernandez/pip/assignees{/user}","branches_url":"https://api.github.com/repos/xavfernandez/pip/branches{/branch}","tags_url":"https://api.github.com/repos/xavfernandez/pip/tags","blobs_url":"https://api.github.com/repos/xavfernandez/pip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xavfernandez/pip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xavfernandez/pip/git/refs{/sha}","trees_url":"https://api.github.com/repos/xavfernandez/pip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xavfernandez/pip/statuses/{sha}","languages_url":"https://api.github.com/repos/xavfernandez/pip/languages","stargazers_url":"https://api.github.com/repos/xavfernandez/pip/stargazers","contributors_url":"https://api.github.com/repos/xavfernandez/pip/contributors","subscribers_url":"https://api.github.com/repos/xavfernandez/pip/subscribers","subscription_url":"https://api.github.com/repos/xavfernandez/pip/subscription","commits_url":"https://api.github.com/repos/xavfernandez/pip/commits{/sha}","git_commits_url":"https://api.github.com/repos/xavfernandez/pip/git/commits{/sha}","comments_url":"https://api.github.com/repos/xavfernandez/pip/comments{/number}","issue_comment_url":"https://api.github.com/repos/xavfernandez/pip/issues/comments{/number}","contents_url":"https://api.github.com/repos/xavfernandez/pip/contents/{+path}","compare_url":"https://api.github.com/repos/xavfernandez/pip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xavfernandez/pip/merges","archive_url":"https://api.github.com/repos/xavfernandez/pip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xavfernandez/pip/downloads","issues_url":"https://api.github.com/repos/xavfernandez/pip/issues{/number}","pulls_url":"https://api.github.com/repos/xavfernandez/pip/pulls{/number}","milestones_url":"https://api.github.com/repos/xavfernandez/pip/milestones{/number}","notifications_url":"https://api.github.com/repos/xavfernandez/pip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xavfernandez/pip/labels{/name}","releases_url":"https://api.github.com/repos/xavfernandez/pip/releases{/id}","created_at":"2014-05-16T09:38:08Z","updated_at":"2015-01-31T10:38:17Z","pushed_at":"2015-10-05T21:55:27Z","git_url":"git://github.com/xavfernandez/pip.git","ssh_url":"git@github.com:xavfernandez/pip.git","clone_url":"https://github.com/xavfernandez/pip.git","svn_url":"https://github.com/xavfernandez/pip","homepage":"https://pip.pypa.io/","size":39046,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"pypa:develop","ref":"develop","sha":"5a15cbb0d84137d9d5591f35572ece8b46caa2cb","user":{"login":"pypa","id":647025,"avatar_url":"https://avatars.githubusercontent.com/u/647025?v=3","gravatar_id":"","url":"https://api.github.com/users/pypa","html_url":"https://github.com/pypa","followers_url":"https://api.github.com/users/pypa/followers","following_url":"https://api.github.com/users/pypa/following{/other_user}","gists_url":"https://api.github.com/users/pypa/gists{/gist_id}","starred_url":"https://api.github.com/users/pypa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypa/subscriptions","organizations_url":"https://api.github.com/users/pypa/orgs","repos_url":"https://api.github.com/users/pypa/repos","events_url":"https://api.github.com/users/pypa/events{/privacy}","received_events_url":"https://api.github.com/users/pypa/received_events","type":"Organization","site_admin":false},"repo":{"id":1446467,"name":"pip","full_name":"pypa/pip","owner":{"login":"pypa","id":647025,"avatar_url":"https://avatars.githubusercontent.com/u/647025?v=3","gravatar_id":"","url":"https://api.github.com/users/pypa","html_url":"https://github.com/pypa","followers_url":"https://api.github.com/users/pypa/followers","following_url":"https://api.github.com/users/pypa/following{/other_user}","gists_url":"https://api.github.com/users/pypa/gists{/gist_id}","starred_url":"https://api.github.com/users/pypa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypa/subscriptions","organizations_url":"https://api.github.com/users/pypa/orgs","repos_url":"https://api.github.com/users/pypa/repos","events_url":"https://api.github.com/users/pypa/events{/privacy}","received_events_url":"https://api.github.com/users/pypa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pypa/pip","description":"The PyPA recommended tool for installing Python packages","fork":false,"url":"https://api.github.com/repos/pypa/pip","forks_url":"https://api.github.com/repos/pypa/pip/forks","keys_url":"https://api.github.com/repos/pypa/pip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pypa/pip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pypa/pip/teams","hooks_url":"https://api.github.com/repos/pypa/pip/hooks","issue_events_url":"https://api.github.com/repos/pypa/pip/issues/events{/number}","events_url":"https://api.github.com/repos/pypa/pip/events","assignees_url":"https://api.github.com/repos/pypa/pip/assignees{/user}","branches_url":"https://api.github.com/repos/pypa/pip/branches{/branch}","tags_url":"https://api.github.com/repos/pypa/pip/tags","blobs_url":"https://api.github.com/repos/pypa/pip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pypa/pip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pypa/pip/git/refs{/sha}","trees_url":"https://api.github.com/repos/pypa/pip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pypa/pip/statuses/{sha}","languages_url":"https://api.github.com/repos/pypa/pip/languages","stargazers_url":"https://api.github.com/repos/pypa/pip/stargazers","contributors_url":"https://api.github.com/repos/pypa/pip/contributors","subscribers_url":"https://api.github.com/repos/pypa/pip/subscribers","subscription_url":"https://api.github.com/repos/pypa/pip/subscription","commits_url":"https://api.github.com/repos/pypa/pip/commits{/sha}","git_commits_url":"https://api.github.com/repos/pypa/pip/git/commits{/sha}","comments_url":"https://api.github.com/repos/pypa/pip/comments{/number}","issue_comment_url":"https://api.github.com/repos/pypa/pip/issues/comments{/number}","contents_url":"https://api.github.com/repos/pypa/pip/contents/{+path}","compare_url":"https://api.github.com/repos/pypa/pip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pypa/pip/merges","archive_url":"https://api.github.com/repos/pypa/pip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pypa/pip/downloads","issues_url":"https://api.github.com/repos/pypa/pip/issues{/number}","pulls_url":"https://api.github.com/repos/pypa/pip/pulls{/number}","milestones_url":"https://api.github.com/repos/pypa/pip/milestones{/number}","notifications_url":"https://api.github.com/repos/pypa/pip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pypa/pip/labels{/name}","releases_url":"https://api.github.com/repos/pypa/pip/releases{/id}","created_at":"2011-03-06T14:30:46Z","updated_at":"2015-10-06T16:21:21Z","pushed_at":"2015-10-05T21:54:11Z","git_url":"git://github.com/pypa/pip.git","ssh_url":"git@github.com:pypa/pip.git","clone_url":"https://github.com/pypa/pip.git","svn_url":"https://github.com/pypa/pip","homepage":"https://pip.pypa.io/","size":56137,"stargazers_count":2371,"watchers_count":2371,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":929,"mirror_url":null,"open_issues_count":618,"forks":929,"open_issues":618,"watchers":2371,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/pypa/pip/pulls/3153"},"html":{"href":"https://github.com/pypa/pip/pull/3153"},"issue":{"href":"https://api.github.com/repos/pypa/pip/issues/3153"},"comments":{"href":"https://api.github.com/repos/pypa/pip/issues/3153/comments"},"review_comments":{"href":"https://api.github.com/repos/pypa/pip/pulls/3153/comments"},"review_comment":{"href":"https://api.github.com/repos/pypa/pip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pypa/pip/pulls/3153/commits"},"statuses":{"href":"https://api.github.com/repos/pypa/pip/statuses/7e02e5c4f890c45c15243b04985a4a9c1700a37b"}}}}