[QGIS-trac] [Quantum GIS] #2446: Python.cmake is wrong about python-sip version

Quantum GIS qgis at qgis.org
Tue Feb 16 05:16:56 EST 2010


#2446: Python.cmake is wrong about python-sip version
---------------------------------------------------------+------------------
   Reporter:  antimirov                                  |              Owner:  borysiasty   
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.5.0
  Component:  Python plugins and bindings                |            Version:  HEAD         
   Keywords:  python sip cmake                           |   Platform_version:               
   Platform:  Debian                                     |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 Today I got this error after having upgraded my python-sip package to
 newer version:

 "SIP is required in version 4.7 or later!"

 But actually it's deeply wrong as my current version is 4.10. So I checked
 cmake/Python.cmake file in which I found that Cmake runs this command to
 compare current version of sip and to check whether it's bigger than 4.7:

 $ python
 >>> import sip

 >>> print '%x' % sip.SIP_VERSION

 So for older older version is:
 sip.SIP_VERSION=263945
 hex=0x40709

 For newer it's funny:
 sip.SIP_VERSION=264704
 hex=40a00

 So the newer version is lexicographically lower than the previous one.
 Looks like a bug.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2446>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list