When is the group of homeomorphisms of a compact space locally compact?

I am interested in finding out when the group of homeomorphisms of a compact topological space $X$ (with appropriate topology e.g. 'weak' or compact-open) is a locally compact space.

What extra conditions might we be able to put on $X$ to ensure that it is so?... What if $X$ is, say, a metric space and we ask when the isometry group is locally compact?