[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Conditional SIP processing based on the PyQt version
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2004-01-25 16:47:34
Message-ID: 200401251647.35067.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Thursday 22 January 2004 9:14 pm, Tuvi, Selim wrote:
> Hi, I noticed that beginning with PyQt 3.9 the sip files are divided into
> subdirectories. We have a SIP interface where we need to import some of the
> core SIP files from the PyQt distribution. But I don't want to break the
> compilation in case the code is compiled against an old version of PyQt. I
> tried modifying the sip.exe command line to add -I c:/PyQt/sip/qt and -I
> c:/PyQt/sip/qtcanvas in addition to -I c:/Pyqt/sip but that gives an error
> saying that qtmod is already defined. So I want to do something like:
>
> %If (- PyQt_3_9)
> %Import qtmod.sip
> %Import qtcanvasmod.sip
> %End
>
> %If (PyQt_3_9 -)
> %Import qt/qtmod.sip
> %Import qtcanvas/qtcanvasmod.sip
> %End
>
> I tried using the Qt version instead as follows:
>
> %If (- Qt_3_2_3)
> %Import qtmod.sip
> %Import qtcanvasmod.sip
> %End
>
> %If (Qt_3_2_3 -)
> %Import qt/qtmod.sip
> %Import qtcanvas/qtcanvasmod.sip
> %End
>
> But I then I get the following error:
>
> sip: c:\projects\hippodraw\sip\sihippo.sip:15: Upper bound is not a time
> version

Version information is ignored for %Import. I think the best way is to pass a 
different -I flag to SIP, then you don't need to change the .sip files at 
all.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic