def METHOD_NAME(self):
    args = []
    # make sure we do not pick a python outside spack:
    if self.spec.satisfies("@6.1.1"):
        args.extend(
            ["--with-python3-path", self.spec["python"].prefix, "--with-python-path", "no"]
        )
    else:
        # versions 7 and above, where --with-python-path recognized the
        # python version:
        args.extend(
            ["--with-python-path", self.spec["python"].prefix, "--with-python2-path", "no"]
        )
    # disable these bits
    for p in ["mysql", "xrootd"]:
        args.append("--with-{0}-path=no".format(p))
    # point these bits at the Spack installations
    for p in ["openssl", "perl", "readline", "swig"]:
        args.append("--with-{0}-path={1}".format(p, self.spec[p].prefix))
    args.append("--with-zlib-path={0}".format(self.spec["zlib-api"].prefix))
    return args