[fdo-trac] #39: FDO API: Add Python Wrappers for API

FDO trac_fdo at osgeo.org
Tue Mar 13 22:50:00 EDT 2007


#39: FDO API: Add Python Wrappers for API
-----------------------------+----------------------------------------------
 Reporter:  gregboone        |         Owner:  gregboone
     Type:  task             |        Status:  assigned 
 Priority:  major            |     Milestone:  3.3.0    
Component:  FDO API          |       Version:  3.3.0    
 Severity:  3                |    Resolution:           
 Keywords:  Python SWIG FDO  |   External_id:           
-----------------------------+----------------------------------------------
Comment (by gregboone):

 This submission adds Python scripting support to the FDO API. The FDO
 build process now allows for the generation of a set of Python wrapper
 scripts for the FDO API using SWIG.

 Python support is currently supported on Windows only. Support on Linux
 will be implemented in a separate submission.

 In order to build the Python wrappers, users will have to install Python
 and SWIG.

 To install SWIG, refer to: http://www.swig.org/ [[BR]]
 To install Python, refer to: http://www.python.org/ [[BR]]

 The FDO python scripts have been tested using SWIG 1.3.31 and Python
 2.4.4.

 NOTE: Python 2.5 is not currently supported.

 Once SWIG and Python have been installed, set the PYTHON_HOME and
 SWIG_HOME environment variables to point to the Python and SWIG
 installation locations. These variables are contained in the
 .\setenvironment.bat script with the default installation directories of:

 PYTHON - C:\Program Files\Python24[[BR]]
 SWIG - C:\Program Files\swigwin-1.3.31[[BR]]

 Building the python scripts is an option in the FDO scripts and must be
 explicitly invoked. To build the Python scripts, follow the following
 steps:

 call setenvironment.bat[[BR]]
 call build –p=build OR call build –p=build –w=fdo[[BR]]

 To run the python unit tests,

 cd Fdo\Python\UnitTest[[BR]]
 call UnitTests.cmd[[BR]]

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/39#comment:4>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list