{"action":"opened","issue":{"url":"https://api.github.com/repos/astropy/astropy-helpers/issues/182","labels_url":"https://api.github.com/repos/astropy/astropy-helpers/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy-helpers/issues/182/comments","events_url":"https://api.github.com/repos/astropy/astropy-helpers/issues/182/events","html_url":"https://github.com/astropy/astropy-helpers/issues/182","id":104577980,"number":182,"title":"Crash in adjust_compiler when usable compiler isn't found","user":{"login":"embray","id":676149,"avatar_url":"https://avatars.githubusercontent.com/u/676149?v=3","gravatar_id":"","url":"https://api.github.com/users/embray","html_url":"https://github.com/embray","followers_url":"https://api.github.com/users/embray/followers","following_url":"https://api.github.com/users/embray/following{/other_user}","gists_url":"https://api.github.com/users/embray/gists{/gist_id}","starred_url":"https://api.github.com/users/embray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embray/subscriptions","organizations_url":"https://api.github.com/users/embray/orgs","repos_url":"https://api.github.com/users/embray/repos","events_url":"https://api.github.com/users/embray/events{/privacy}","received_events_url":"https://api.github.com/users/embray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T21:46:04Z","updated_at":"2015-09-02T21:46:04Z","closed_at":null,"body":"This showed up via a Stack Overflow question: http://stackoverflow.com/questions/32354982/problems-installing-astropy\r\n\r\nIf the `get_compiler_version` function fails to find the right way to get the compiler version, it returns the string `'unknown'`.  But the regexp in `adjust_compiler` that checks the compiler version is a bytes regexp.  On Python 2 this is no problem, but on Python 3 it crashes if passed the string `'unknown'`.\r\n\r\nThis can be replicated by setting the CC environment variable to any program that just exits with a non-zero error code (regardless of arguments).\r\n\r\nNote, even if not for this bug the installation would probably still fail if the user lacks a working compiler."}}