Fixes issue #864 reasonably well; you'll still get a traceback if some extension modules outright failed to compile--that is, this doesn't help with a broken installation. Just with the not too uncommon case of someone trying to 'import astropy' from a source checkout
Merge pull request #864 from iguananaut/issue-864

import coordinates: cannot import name sofa_time