[fdo-commits] r2684 - trunk
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Tue Mar 13 22:38:16 EDT 2007
Author: gregboone
Date: 2007-03-13 22:38:10 -0400 (Tue, 13 Mar 2007)
New Revision: 2684
Modified:
trunk/OpenSourceBuild__README.txt
Log:
Ticket #39 - Add Python Wrappers for FDO API (Windows Only)
Modified: trunk/OpenSourceBuild__README.txt
===================================================================
--- trunk/OpenSourceBuild__README.txt 2007-03-14 00:35:19 UTC (rev 2683)
+++ trunk/OpenSourceBuild__README.txt 2007-03-14 02:38:10 UTC (rev 2684)
@@ -192,25 +192,25 @@
set PATH=%PATH%;C:\Program Files\ATT\Graphviz\bin
8. OPTIONAL: The FDO build process supports the generation of a set of python
- wrapper scripts for the FDO API. The pyhton scripts are generated using SWIG. To
- generate the phyton scripts, you must have Python and SWIG installed.
+ wrapper scripts for the FDO API. The python scripts are generated using SWIG. To
+ generate the python scripts, you must have Python and SWIG installed.
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
-
- Once SWIG and Phyton have been installed set the PYTHON_HOME and SWIG_HOME environment
- variables to point to the respective installation locations.
-
+ 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
+
+ Once SWIG and python have been installed set the PYTHON_HOME and SWIG_HOME environment
+ variables to point to the respective installation locations.
+
e.g.
-
- SET PYTHON_HOME=C:\progra~1\Python24
- SET SWIG_HOME=C:\progra~1\swigwin-1.3.31
-
- ** NOTE: These variables are maintained in the setenvironment.bat script.
+
+ SET PYTHON_HOME=C:\progra~1\Python24
+ SET SWIG_HOME=C:\progra~1\swigwin-1.3.31
+
+ ** NOTE: These variables are maintained in the setenvironment.bat script.
-9. Use the [FDO OpenSource]\setenvironment.bat script to assist in setting and
+ 9. Use the [FDO OpenSource]\setenvironment.bat script to assist in setting and
maintaing the correct environment settings for the FDO build process.
This script can be modifed and used to set the correct environment variables
and PATH settings.
@@ -259,26 +259,28 @@
[-a=Action]
[-w=WithModule]
[-d=BuildDocs]
+ [-p=BuildPythonWrappers]
- Help: -h[elp]
- OutFolder: -o[utpath]=destination folder for binaries
- BuildType: -c[onfig]=release(default), debug
- Action: -a[ction]=build(default),
- buildinstall,
- install,
- clean
- WithModule: -w[ith]=all(default),
- fdo,
- providers,
- shp,
- sdf,
- wfs,
- wms,
- arcsde,
- odbc,
- mysql,
- gdal
- BuildDocs: -d[ocs]=skip(default), build
+ Help: -h[elp]
+ OutFolder: -o[utpath]=destination folder for binaries
+ BuildType: -c[onfig]=release(default), debug
+ Action: -a[ction]=build(default),
+ buildinstall,
+ install,
+ clean
+ WithModule: -w[ith]=all(default),
+ fdo,
+ providers,
+ shp,
+ sdf,
+ wfs,
+ wms,
+ arcsde,
+ odbc,
+ mysql,
+ gdal
+ BuildDocs: -d[ocs]=skip(default), build
+ BuildPythonWrappers: -p[ython]=skip(default), build
**************************************************************************
e.g.
@@ -301,6 +303,8 @@
build -w=sdf
**** Build the FDO WMS and WFS Providers
build -w=wms -w=wfs
+ **** Build the FDO Python Wrapper scripts
+ build -p=build
**** Build documentation and install all files to C:\Fdo
build -a=install -o=C:\Fdo -d=build
@@ -379,18 +383,18 @@
"OdbcInit.txt" file with valid values for username, password and service
for the services against which the unit tests should be executed and
run "Dbg\UnitTestOdbc.exe" with no additional parameters.
-
+
NOTE: Do not drop OdbcInit.txt in subversion if you choose to modify it
-
+
If you wish to run the unit test and specify your own
initialization file, create your the file with valid values for username,
password and the service names. Run the unit test by specifying the
initialization file on the command line when executing the unit tests.
-
+
e.g. Dbg\UnitTestOdbc.exe initfiletest=OdbcInitEx.txt
-
+
NOTE: The initialization file must contain values for service, username and password.
-
+
The initialization file must contain service, username and password for each server type
DSN name can be specified using DSNOracle, DSNMySql, DSNSqlServer
@@ -408,7 +412,12 @@
Access: Dbg\UnitTestOdbc.exe OdbcAccessTests
Excel: Dbg\UnitTestOdbc.exe OdbcExcelTests
Text: Dbg\UnitTestOdbc.exe OdbcTextTests
-
+
+ Python Scripts:
+
+ cd [FDO OpenSource]\Fdo\Python\UnitTest
+ call UnitTests.cmd
+
-----------------------------
Linux Instructions
-----------------------------
@@ -704,7 +713,7 @@
cd [FDO OpenSource]/Providers/ArcSDE/Src/UnitTest
./UnitTest [mandatory command-line arguments]
-
+
e.g.
./UnitTest server=somesite.com port_multi=5151/tcp port_single=5151/tcp sdepwd=test dataset=FC4 rdbms=ORACLE
More information about the fdo-commits
mailing list