Opened 18 years ago
Closed 17 years ago
#39 closed task (fixed)
FDO API: Add Python Wrappers for API
Reported by: | gregboone | Owned by: | gregboone |
---|---|---|---|
Priority: | major | Milestone: | 3.3.0 |
Component: | FDO API | Version: | 3.3.0 |
Severity: | 3 | Keywords: | Python SWIG FDO |
Cc: | jacklee | External ID: |
Description
A set of Python wrappers for the FDO API are available. The wrappers were generated using SWIG. These wrappers will be submitted into the FDO subversion and incorporated into the FDO build process.
Change History (6)
comment:1 by , 18 years ago
Status: | new → assigned |
---|
comment:2 by , 18 years ago
Cc: | added |
---|---|
Keywords: | Python SWIG FDO added |
comment:3 by , 18 years ago
comment:4 by , 18 years ago
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/
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_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
SWIG - C:\Program Files\swigwin-1.3.31
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
call build –p=build OR call build –p=build –w=fdo
To run the python unit tests,
comment:5 by , 18 years ago
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
comment:6 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Author: gregboone Date: 2007-03-13 19:42:45 -0400 (Tue, 13 Mar 2007) New Revision: 2682
Added:
Modified:
Log: Ticket #39 - Add Python Wrappers for FDO API (Windows Only)