The first (i.e. non py2) configure.py step in the PKGBUILD fails. After some research, the run_command(' '.join([quote(a) for a in argv]), verbose)
step on line 2619 of the configure.py fails to produce any output in src/PyQt5_gpl-5.13.0/QtCore.
It then checks for the existence of a file in there, doesn't find it, and errors out.
┌─[ignormies][~/git/qt-debug-pkgbuild/pyqt5]
└──▪ makepkg -si
==> Making package: pyqt5-debug 5.13.0-1 (Mon 14 Oct 2019 10:57:28 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found PyQt5_gpl-5.13.0.tar.gz
==> Validating source files with sha256sums...
PyQt5_gpl-5.13.0.tar.gz ... Passed
==> Extracting sources...
-> Extracting PyQt5_gpl-5.13.0.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt 5.13.0 (licensed under the GNU General Public
License) for Python 3.7.4 on linux.
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtMultimediaWidgets module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtPrintSupport module should be built...
Checking to see if the QtQml module should be built...
Checking to see if the QtQuick module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtWebKitWidgets module should be built...
Checking to see if the QtWidgets module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the QAxContainer module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the _QOpenGLFunctions_2_0 module should be built...
Checking to see if the _QOpenGLFunctions_2_1 module should be built...
Checking to see if the _QOpenGLFunctions_4_1_Core module should be built...
Checking to see if the QtSensors module should be built...
Checking to see if the QtSerialPort module should be built...
Checking to see if the QtX11Extras module should be built...
Checking to see if the QtBluetooth module should be built...
Checking to see if the QtMacExtras module should be built...
Checking to see if the QtPositioning module should be built...
Checking to see if the QtWinExtras module should be built...
Checking to see if the QtQuickWidgets module should be built...
Checking to see if the QtWebSockets module should be built...
Checking to see if the Enginio module should be built...
Checking to see if the QtWebChannel module should be built...
Checking to see if the QtLocation module should be built...
Checking to see if the QtNfc module should be built...
Checking to see if the QtNetworkAuth module should be built...
Checking to see if the QtRemoteObjects module should be built...
Checking to see if the dbus support module should be built...
Qt v5.13.1 is being used.
The qmake executable is /usr/bin/qmake.
Qt is built as a shared library.
SIP 4.19.19 is being used.
The sip executable is /usr/bin/sip.
These PyQt5 modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtMultimediaWidgets, QtNetwork, QtOpenGL, QtPrintSupport, QtQml, QtQuick,
QtSql, QtSvg, QtTest, QtWebKit, QtWebKitWidgets, QtWidgets, QtXml,
QtXmlPatterns, QtDesigner, QtDBus, _QOpenGLFunctions_2_0,
_QOpenGLFunctions_2_1, _QOpenGLFunctions_4_1_Core, QtSensors, QtSerialPort,
QtX11Extras, QtBluetooth, QtPositioning, QtQuickWidgets, QtWebSockets,
QtWebChannel, QtLocation, QtNfc, QtNetworkAuth, QtRemoteObjects.
The PyQt5 Python package will be installed in /usr/lib/python3.7/site-packages.
A debug version of PyQt5 will be built.
PyQt5 is being built with generated docstrings.
PyQt5 is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in /usr/lib/qt/plugins/designer.
The qmlscene plugin will be installed in /usr/lib/qt/plugins/PyQt5.
The QScintilla API file will be installed in /usr/share/qt/qsci/api/python.
The PyQt5 PEP 484 stub files will be installed in
/usr/lib/python3.7/site-packages/PyQt5.
The dbus support module will be installed in
/usr/lib/python3.7/site-packages/dbus/mainloop.
pyuic5, pyrcc5 and pylupdate5 will be installed in /usr/bin.
The interpreter used by pyuic5 is /usr/bin/python.
Generating the C++ source for the QtCore module...
Error: Unable to create the C++ code.
==> ERROR: A failure occurred in build().
Aborting...