wayland support in wheels on Pypi
Phil Thompson
phil at riverbankcomputing.com
Fri Feb 21 12:34:14 GMT 2025
On 21/02/2025 10:58, Sergio Callegari wrote:
> On 21/02/2025 11:27, Phil Thompson wrote:
>> Apologies for not being able to reply earlier.
>
> Actually, it's me to thank you for looking into it and for the extended
> answer!
>
>> An updated PyQt5-Qt5 wheel (build number 1) has been uploaded to the
>> local PyPI server. If it fixes the problem then I'll move it to
>> pypi.org.
>
> I'd like to test, can you confirm the the local server is
> "https://riverbankcomputing.com/pypi/simple/"? Do I need `--pre`?
>
>> Answers to your questions are embedded below.
>>
>> No. pyqt-bundle is used to embed your copy of Qt in your copy of the
>> PyQt5 wheels so that the PyQt5-Qt5 wheels on pypi.org are no longer
>> used.
>
> Tried using it just before receiving your mail, and realized it was
> not the right tool.
>
>> The PyQt5-Qt5 wheels are created with pyqt-qt-wheel which is also part
>> of PyQt-builder but is undocumented.
>
> In my experiment also found this. Unclear to me how to use: what is
> the PACKAGE to be given on the command line?
'PyQt5' to build PyQt5-Qt5, 'PyQtChart' to build PyQtChart-Qt5 etc.
>>> 3) Alternatively, can I use the pyqt-bundle cli tool to build my own
>>> pyqt5-qt5 wheel based on my system's qt5 that includes the wayland
>>> plugin and use that to satisfy the dependencies of other packages?
>>
>> Yes. You'd have to take steps to ensure your version was used in
>> preference to the pypi.org version.
>
> With pyqt-qt-wheel, right? How is the preference expressed? Now, there
> will probably be no need for it, given your new wheel, but it is
> always good to learn...
Give appropriate --index-url options to pip. Or install a local copy of
the wheel before installing PyQt5 from pypi.org.
Phil
More information about the PyQt
mailing list