Timeline and If limitation...

Matt Newell newellm at blur.com
Fri May 9 00:42:25 BST 2025


It seems impossible to enable sip code for older versions because you can't
test for any version in a timeline that may not be defined in the installed
version.

Specifically:

%If (- Qt_6_6_0)
%Include my_std_optional.sip
%End

fails with any qt/pyqt less than 6.6.0 because the timeline doesn't contain
that version.

Right now I have to test for the pyqt version ahead of time, define a new
feature, and disable that if the version isn't met.

I think it would be nice to have the %If feature when passed a range to
have the following behavior:

%If (Qt_6_6_0 -)  # Evals to false if the tag/qualifier is not defined
%If (- Qt_6_6_0) # Evals to true if the tag/qualifier is not defined

%If (Qt_6_5_0 - Qt_6_6_0) # Evals to false if neither is defined, true if
one or the other is defined and the tag is in the timeline above/equal to
the left value or below/equal to the right value.

Thanks,
Matt Newell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250508/fcc10322/attachment.htm>


More information about the PyQt mailing list