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

Phil Thompson phil at riverbankcomputing.com
Sun Nov 10 15:31:59 GMT 2019


On 10/11/2019 15:17, FX wrote:
>> 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.

You are trying to deal with two significant changes (PyQt v5.11 and SIP 
v5) at the same time. I'd suggest you start by building PyQt v5.13.2 
with SIP v4.19.19.

Phil


More information about the PyQt mailing list