<div dir="ltr">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.<br><br>Specifically:<br><br>%If (- Qt_6_6_0)<br>%Include my_std_optional.sip<br>%End<br><br>fails with any qt/pyqt less than 6.6.0 because the timeline doesn't contain that version.<br><br>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.<br><br>I think it would be nice to have the %If feature when passed a range to have the following behavior:<br><br>%If (Qt_6_6_0 -)  # Evals to false if the tag/qualifier is not defined<br>%If (- Qt_6_6_0) # Evals to true if the tag/qualifier is not defined<br><br>%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.<br><br>Thanks,<br>Matt Newell</div>