def METHOD_NAME(self):
    file = join_path("arch", "arch-SPACK.path")
    spec = self.spec
    paths = {
        "NETCDF_INC_DIR": spec["netcdf-c"].prefix.include,
        "NETCDF_LIB_DIR": spec["netcdf-c"].prefix.lib,
        "HDF5_INC_DIR": spec["hdf5"].prefix.include,
        "HDF5_LIB_DIR": spec["hdf5"].prefix.lib,
    }
    text = r"""