if QT_BINDING is None:
try:
import PyQt4 // NOQA
QT_BINDING = "pyqt4"
except ImportError:
if PY2:
sys.stderr.write(
"Please install PyQt5, PySide2 or PyQt4 for Python2.\n"
"Note that PyQt5 can be installed via pip for Python3.")
sys.exit(1)
assert PY3
// PyQt5 can be installed via pip for Python3
install_requires.append("pyqt5")
QT_BINDING = "pyqt5"
del QT_BINDING
if sys.argv[1] == "release":
commands = [