[fdo-internals] Code Submission Notification: Ticket #39 - AddPython Wrappers for FDO API (Linux)

Greg Boone greg.boone at autodesk.com
Tue Mar 20 12:22:16 EDT 2007


This submission adds additional 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 on Linux. 

 

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

 

To install SWIG, refer to: http://www.swig.org/

To install Python, refer to: http://www.python.org/

             

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_LIB_PATH and
PYTHON_INCLUDE_PATH environment variables to point to the locations of
the Python Include and Library files.

     

        e.g.

          

        export PYTHON_INCLUDE_PATH=/usr/include/python2.4

        export PYTHON_LIB_PATH=/usr/lib/python2.4

        

** These variables are maintained in the [FDO
OpenSource]/setenvironment.sh script. 

     

In order to build the FDO Python Wrappers, build and install the FDO
libraries in /usr/local/fdo-3.3.0/lib using the directions outlined in
OpenSourceBuild__README.txt. 

 

cd [FDO OpenSource]

source ./setenvironment.sh

./build_thirdparty.sh

./build_linux.sh

 

Once the FDO install is complete, cd to [FDO OpenSource]/Fdo/Python and
run the build_linux.sh script. The Python components will be also be
installed in /usr/local/fdo-3.3.0/lib. 

 

cd [FDO OpenSource]/Fdo/Python

./build_linux.sh

 

To run the python unit tests, 

 

            cd [FDO OpenSource]/Fdo/Python/UnitTest

            ./UnitTests.sh

 

 

Comments

 

1)       The Python script generation process is not yet supported from
the top level [FDO OpenSource]/build_linux.sh script

2)       The Python script generation process uses a hard-coded Makefile
and does yet support configure.

3)       The install places the FDO.py script into
/usr/local/fdo-3.3.0/lib. This needs to be verified. 

 

----------------------

 

Author: gregboone

Date: 2007-03-19 23:28:38 -0400 (Mon, 19 Mar 2007) New Revisions:
2691-2693, 2696-2699

 

Added:

   trunk/Fdo/Python/Makefile

   trunk/Fdo/Python/build_linux.sh

   trunk/Fdo/Python/UnitTest/UnitTests.sh

   trunk/Fdo/Python/Inc/Common/StringCollection.h

   trunk/Fdo/Python/Inc/Common/Vector.h

 

Modified:

   trunk/setenvironment.sh

   trunk/Fdo/Python/Inc/stdafx.h

   trunk/Fdo/Python/Src/Common/StringBuffer.cpp

   trunk/Fdo/Python/UnitTest/Src/ApplySchemaTest.py

   trunk/Fdo/Python/UnitTest/Src/ClientServicesTest.py

   trunk/Fdo/Python/UnitTest/Src/LOBTest.py

   trunk/Fdo/Python/README.txt

   trunk/OpenSourceBuild__README.txt

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-internals/attachments/20070320/f7ce3edb/attachment.html


More information about the fdo-internals mailing list