Fwd: How to define conditional dependencies in pyproject.toml
Detlev Offenbach
detlev at die-offenbachs.de
Sun Aug 10 13:00:02 BST 2025
Sorry,
forgot the list in the To: adress.
-------- Weitergeleitete Nachricht --------
Betreff: Re: How to define conditional dependencies in pyproject.toml
Datum: Sun, 10 Aug 2025 12:11:40 +0200
Von: Detlev Offenbach <detlev at die-offenbachs.de>
An: JakobDev <jakobdev at gmx.de>
Hi,
that is what I expected (unfortunately). My issue is not so much related
to building the wheel but installing it. As my tests showed, when there
is an 'unsuitable' version of PyQt6 already installed (e.g. 6.7.0),
installing any other PyQt6 package (e.g. pyqt6-webengine) with a newer
version (e.g. with pip install pyqt6-webengine>=6.2.0) will neither
upgrade the already installed PyQt6 package nor throw an error. However,
when trying to import the newer package, an error will be thrown. I
hoped for a way to avoid such a nasty situation already during the
installation process.
Regards,
Detlev
Am 10.08.25 um 10:01 schrieb JakobDev:
>
> As far as I know this can't be done in a pyproject.toml directly. But
> you can write a custom build backend with a python function that
> returns the requirements. So you can sue custom code to finding out
> the requirements. See
> https://setuptools.pypa.io/en/latest/build_meta.html.
>
> Am 09.08.25 um 18:41 schrieb Detlev Offenbach:
>>
>> Hello,
>>
>> I would like to modify the eric-ide pyproject.toml file such, that
>> some dependencies get installed depending on the PyQt6 version
>> installed (or selected). Specifically I would like PyQt6-Graphs being
>> installed, if PyQt6 version is >= 6.8.0, and PyQt6-Charts gets
>> installed, if PyQt6 version is < 6.8.0.
>>
>> How do I specify that in the pyproject.toml file?
>>
>> Regards,
>> Detlev
>>
>> --
>> Detlev Offenbach
>> detlev at die-offenbachs.de
--
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250810/92f73b42/attachment.htm>
More information about the PyQt
mailing list