Use .utils._compiler instead of astropy.utils._compiler to force affilated packages to report the compiler they were built with, not the compiler Astropy was built with.  This will require an update the package-template to include support for this optional feature.  The instructions for setting up the package should include removing this if the package does not include any compiled C extensions (in which case it's superfluous).