I worked around it by patching the relevant sip file in my build process: https://github.com/kovidgoyal/bypy/commit/543d557e25fc446c54b4165113114c7138f1174c