[QGIS-trac] [Quantum GIS] #2370: Native and faster compilation of Python bindings

Quantum GIS qgis at qgis.org
Fri Jan 15 06:10:33 EST 2010


#2370: Native and faster compilation of Python bindings
------------------------------------------------+---------------------------
   Reporter:  wonder                            |              Owner:  wonder       
       Type:  patch                             |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.5.0
  Component:  Build/Install                     |            Version:  HEAD         
   Keywords:                                    |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 The attached patch cleans the way how python wrappers are compiled. Until
 now, the compilation was driven with custom generated makefiles that
 didn't integrate well with CMake.

 The patch uses macros from PyKDE project that make compilation native in
 CMake. The configuration is cleaner and it's possible to use multiple jobs
 (e.g. make -j3). Additionally the compilation runs several times faster:
 SIP is configured to generate only few (big) files instead of 100+ files
 (one for each class) - the compiler has to parse the headers fewer times.

 Tested on linux (ubuntu). Before applying to trunk it should be confirmed
 that it works with other platforms.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2370>
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