[PyQt] PyQt 5.13.2 build error: module 'sipbuild.api' has no attribute ‘prepare_metadata_for_build_wheel'

FX fxcoudert at gmail.com
Sun Nov 10 15:17:56 GMT 2019


> I don't know what you mean by the sip installation directory. PyQt packages (eg. PyQt3D, PyQtChart) have always written to "other" packages' folders (ie. PyQt5).

We want to install sip in /usr/local/Cellar/sip/5.0.0 and pyqt in /usr/local/Cella/pyqt/5.13.2
In our build process, during pyqt build, it does not have write access to /usr/local/Cellar/sip/5.0.0

With sip 4.19.19 and pyqt 5.10.1 it used to work, passing options --bindir and --destdir and --stubsdir to pyqt’s configure.py

With sip 5.0.0 and pyqt 5.13.2, I cannot manage to achieve this result. I am trying to build pyqt with:

sip-install --target-dir=/usr/local/Cella/pyqt/5.13.2/lib/python37/site-packages

and the documentation of --target-dir says "The project will be installed in DIR.”
Yet sip-install tries to copy files into directory outside of DIR, namely, in /usr/local/Cellar/sip/5.0.0/libexec/bin

Maybe this is what the old --bindir option was used for, but it does not appear to have an equivalent in sip 5.0.0.

Thanks,
FX


More information about the PyQt mailing list