def METHOD_NAME(self, spec, prefix):
    """Install under the prefix"""
    # Ugly: all files land under 'deploy' and we need to disentangle them
    mkdirp(prefix.bin)
    mkdirp(prefix.include)
    mkdirp(prefix.lib)
    with working_dir("deploy"):
        for f in os.listdir("."):
            if re.match(r".*\.(a|so|dylib)$", f):
                METHOD_NAME(f, prefix.lib)
            elif re.match(r".*\.h$", f):
                METHOD_NAME(f, prefix.include)
            else:
                METHOD_NAME(f, prefix.bin)