PyQt4 can be built against Qt v5 in exactly the same way that it is built against Qt v4. However only a Qt v4 compatible subset of Qt v5 is supported, specifically:
The --no-deprecated option to PyQt4’s configure.py can be used to disable the support for the deprecated features. This can be useful in the porting of PyQt4 applications to PyQt5.