[PyQt] PyQt 5.13.2 build error: module 'sipbuild.api' has no attribute ‘prepare_metadata_for_build_wheel'
Phil Thompson
phil at riverbankcomputing.com
Tue Nov 12 09:06:13 GMT 2019
On 11/11/2019 20:54, FX wrote:
>> What are the files it’s trying to install?
>
> pylupdate5, pyrcc5, pyuic5 are the ones erroring out:
>
> /usr/local/opt/qt/bin/qmake -install qinstall
> /private/tmp/tmp_yu_wgdv/__init__.py
> /usr/local/Cellar/pyqt/5.13.2/lib/python5.13.2/site-packages/PyQt5/__init__.py
> Error copying /private/tmp/tmp_yu_wgdv/pylupdate5 to
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pylupdate5: Cannot create
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pylupdate5 for output
> make: [install_scripts] Error 3 (ignored)
> /usr/local/opt/qt/bin/qmake -install qinstall -exe
> /private/tmp/tmp_yu_wgdv/pyrcc5
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pyrcc5
> Error copying /private/tmp/tmp_yu_wgdv/pyrcc5 to
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pyrcc5: Cannot create
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pyrcc5 for output
> make: [install_scripts] Error 3 (ignored)
> /usr/local/opt/qt/bin/qmake -install qinstall -exe
> /private/tmp/tmp_yu_wgdv/pyuic5
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pyuic5
> Error copying /private/tmp/tmp_yu_wgdv/pyuic5 to
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pyuic5: Cannot create
> /usr/local/Cellar/sip/5.0.0/libexec/bin/pyuic5 for output
> make: [install_scripts] Error 3 (ignored)
>
>
> There may be others, but compilation stops at that point.
These are installed in the directory containing the Python interpreter
that is executing sip-install. If you want an isolated build of PyQt you
would normally create a venv for that purpose, install sip5 into that
venv and run sip-install in that venv. Is that a problem?
I admit that the provision of the --target-dir option but not a
--bin-dir option is inconsistent. However my preferred fix for that is
to deprecate the --target-dir option.
There are other files potentially copied into the Qt installation
(Designer and Qml plugins and QScintilla .api files).
Phil
More information about the PyQt
mailing list