def METHOD_NAME(self):
    if "+python" in self.spec:
        if "^py-pyqt4" in self.spec:
            py_pyqtx = "py-pyqt4"
            pyqtx = "PyQt4"
        elif "^py-pyqt5" in self.spec:
            py_pyqtx = "py-pyqt5"
            pyqtx = "PyQt5"
        with working_dir(join_path(self.stage.source_path, "Python")):
            pydir = join_path(python_platlib, pyqtx)
            mkdirp(os.path.join(self.prefix.share.sip, pyqtx))
            python = self.spec["python"].command
            python(
                "configure.py",
                "--pyqt=" + pyqtx,
                "--sip=" + self.spec["py-sip"].prefix.bin.sip,
                "--qsci-incdir=" + self.spec.prefix.include,
                "--qsci-libdir=" + self.spec.prefix.lib,
                "--qsci-sipdir=" + os.path.join(self.prefix.share.sip, pyqtx),
                "--apidir=" + self.prefix.share.qsci,
                "--destdir=" + pydir,
                "--pyqt-sipdir=" + os.path.join(self.spec[py_pyqtx].prefix.share.sip, pyqtx),
                "--sip-incdir="
                + join_path(
                    self.spec["py-sip"].prefix.include,
                    "python" + str(self.spec["python"].version.up_to(2)),
                ),
                "--stubsdir=" + pydir,
            )
            # Fix build errors
            # "QAbstractScrollArea: No such file or directory"
            # "qprinter.h: No such file or directory"
            # ".../Qsci.so: undefined symbol: _ZTI10Qsci...."
            qscipro = FileFilter("Qsci/Qsci.pro")
            if "^qt@4" in self.spec:
                qtx = "qt4"
            elif "^qt@5" in self.spec:
                qtx = "qt5"
            link_qscilibs = "LIBS += -L" + self.prefix.lib + " -lqscintilla2_" + qtx
            qscipro.filter(
                "TEMPLATE = lib",
                "TEMPLATE = lib\nQT += widgets" + "\nQT += printsupport\n" + link_qscilibs,
            )
            make()
            # Fix installation prefixes
            makefile = FileFilter("Makefile")
            makefile.filter(r"\$\(INSTALL_ROOT\)", "")
            makefile = FileFilter("Qsci/Makefile")
            makefile.filter(r"\$\(INSTALL_ROOT\)", "")
            if "@2.11:" in self.spec:
                make("install", parallel=False)
            else:
                make("install")