def METHOD_NAME(self, env):
    if(self.spec.satisfies('@:8.1.6')):
        env.set('MPICC', spack_cc)
        env.set('MPICXX', spack_cxx)
        env.set('MPIF77', spack_fc)
        env.set('MPIF90', spack_fc)
    else:
        # cray-mpich 8.1.7: features MPI compiler wrappers
        env.set('MPICC', join_path(self.prefix.bin, 'mpicc'))
        env.set('MPICXX', join_path(self.prefix.bin, 'mpicxx'))
        env.set('MPIF77', join_path(self.prefix.bin, 'mpif77'))
        env.set('MPIF90', join_path(self.prefix.bin, 'mpif90'))