'Run after install to tell the Makefiles to use
the compilers that Spack built the package with.
If this isn\'t done, they\'ll have CC, CPP, and F77 set to
Spack\'s generic cc and f77. We want them to be bound to
whatever compiler they were built with.'

def filter_compilers(self):

    kwargs = {'ignore_absent': True, 'backup': False, 'string': True}
    dirname = os.path.join(self.prefix, 'examples')
    cc_files = ['arkode/C_serial/Makefile', 'arkode/C_parallel/Makefile', 'cvode/serial/Makefile', 'cvode/parallel/Makefile', 'cvodes/serial/Makefile', 'cvodes/parallel/Makefile', 'ida/serial/Makefile', 'ida/parallel/Makefile', 'idas/serial/Makefile', 'idas/parallel/Makefile', 'kinsol/serial/Makefile', 'kinsol/parallel/Makefile', 'nvector/serial/Makefile', 'nvector/parallel/Makefile', 'nvector/pthreads/Makefile']
    f77_files = ['arkode/F77_serial/Makefile', 'cvode/fcmix_serial/Makefile', 'ida/fcmix_serial/Makefile', 'ida/fcmix_pthreads/Makefile', 'kinsol/fcmix_serial/Makefile']
    for filename in cc_files:
        filter_file(os.environ['CC'], self.compiler.cc, os.path.join(dirname, filename), **kwargs)
    for filename in f77_files:
        filter_file(os.environ['F77'], self.compiler.f77, os.path.join(dirname, filename), **kwargs)
