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