'Generate spack-config.sh file.'

def configure(self, spec, prefix):

    config = join_path(self.stage.source_path, 'spack-config.sh')
    with open(config, 'w') as out:
        out.write('#    Local    tweaks    for    building\n#    Location    of    adios    from    spack\nexport    ADIOS_ARCH_PATH={adios_dir}\n\n#    Local    build    (for    user    appbin,    libbin)\n.    ./change-userdir.sh    $PWD/{user_dir}\n#\n'.format(adios_dir=spec['adios'].prefix, user_dir=self.build_userdir))
