[Qgis-developer] Sip flag to generate docstrings

Gary Sherman gsherman at geoapt.com
Sun Feb 19 23:44:32 EST 2012


On Feb 19, 2012, at 7:19 PM, Gary Sherman wrote:

>> Does the resultant file have contents? Like (from PyQt's api file):
>> 
>> PyQt4.QtCore.qInstallMsgHandler?4(callable) -> callable
>> PyQt4.QtCore.qRegisterResourceData?4(int, str, str, str) -> bool
>> PyQt4.QtCore.qUnregisterResourceData?4(int, str, str, str) -> bool
>> 
> Yes, it has contents.

Unfortunately sip is run in three passes (I think) so the file is getting overwritten. It only contains the results of the last run. Not sure how to manage that since there is one flag setting in CMake.

> 
>> I have gotten empty files before. If yours is OK, then, on the Mac, it goes in:
>> 
>> /usr/local/Qt4.[7|8]/qsci/api/python/
>> 
>> as per default open source Qt install. For Eric to use the API files
>> they need to be statically linked in by compiling via the Eric API
>> preference dialog (which should automatically compile the APIs in that
>> default directory) [1]. Other options for Eric4's use of the API files
>> are in the Autocompletion and Call Tips dialogs.
>> 
>> Could you post a link to the generated PyQGIS API file? (In case I
>> miserably fail at compiling it again.) Like to test it out.
> 

-gary

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gary Sherman
GeoApt LLC
  http://geoapt.com
Founder, Quantum GIS
Chair, QGIS PSC
Book:
  http://geospatialdesktop.com
"We work virtually everywhere"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=











More information about the Qgis-developer mailing list