How to define conditional dependencies in pyproject.toml

JakobDev jakobdev at gmx.de
Sun Aug 10 09:01:04 BST 2025


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250810/8ddd0c70/attachment.htm>


More information about the PyQt mailing list