def METHOD_NAME(self, spec, prefix):
    env["CC"] = spec["mpi"].mpicc
    env["CXX"] = spec["mpi"].mpicxx
    env["F77"] = spec["mpi"].mpif77
    env["FC"] = spec["mpi"].mpifc
    options = [
        "--full",
        "--%s" % spec.variants["mode"].value,
        "--arch",
        "SPACK",
        "--netcdf_lib",
        "netcdf4_par",
        "--job",
        str(make_jobs),
    ]
    self.xios_env()
    self.xios_path()
    self.xios_fcm()
    make_xios = Executable("./make_xios")
    make_xios(*options)
    mkdirp(spec.prefix)
    install_tree("bin", spec.prefix.bin)
    install_tree("lib", spec.prefix.lib)
    install_tree("inc", spec.prefix.include)
    install_tree("etc", spec.prefix.etc)
    install_tree("cfg", spec.prefix.cfg)