############################################################################
# Keith R. Jackson, LBNL
# See Copyright for copyright notice!
########################################################################### 


Goals:
  * Provide a clean object oriented interface to the Globus (http://www.globus.org) meta-computing toolkit.
  * Provide similar performance to using the underlying C code as much as possible.
  * Minimize the number of changes necessary when aspects of Globus change.
  * Where possible, make Globus as natural to use from Python as possible.  

Implementation Notes:
  * Use Python (http://www.python.org) as the high level OO implementation language.  Python's dynamic typing and interpreted nature make it an ideal language to prototype and implement higher level systems.  The ability to extend python with C code makes it practical to achieve high performance.
  * Use SWIG (http://www.swig.org) to automate the generation of wrapper code.  This allows a simple relink against newer versions of the Globus library without having to recode the interface.  The use of SWIG should also make it easier to generate interfaces for Perl or TCL.

Requirements:
  * Python2.2 (or newer)
  * The gt2.4.x, or newer, build of the Globus toolkit.

Getting pyGlobus from CVS: 

%cvs -d :pserver:anonymous@bosshog.lbl.gov:/home/portnoy/u5/repository login
%cvs -d :pserver:anonymous@bosshog.lbl.gov:/home/portnoy/u5/repository co pyGlobus

*SWIG Version 1.3.17 or newer

If you get pyGlobus from CVS you must give the --run-swig argument to the setup.py distutils script. Make sure you have SWIG 1.3.17 or newer.  

Compiling:
  Before compiling you must set your GLOBUS_LOCATION variables to point to your globus installation. Also source the globus-user-env script
to configure your environment.

  If you want to use the test programs I have included, you must build against
a threaded version of globus.

pyGlobus uses the standard python distutils module to build. To build and install run: "python setup.py install". This will build and install into the python site extension directory. To just build run: "python setup.py build". As with all distutils packages a "--prefix" option is accepted to install into a non-standard location. This is typically done if you do not have sufficient permissions to install in the system site extension directory. By default pyGlobus attempts to build against the "gcc32dbgpthr" flavor of Globus. To override this, pass a "--flavor=<FLAVOR>" to the build command. If you are modifiying the swig files, you need to run the build command with the "--run-swig" option. To rebuild the documentation use a --run-epydoc as option to setup.py.If you want to build only a specific module or modules use the --with-modules=[mod1,mod2,mod3].
Valid module names are: util,ftpClient,ftpControl,gassCache,gassCopy,gassServerEZ,gassTransfer,gramClient,io,security,rlsClient,myProxy.
  If pyGlobus was installed into a non-standard directory, set PYTHONPATH to contain the directory pyGlobus was installed into.

Using a compiler that isn't the compiler that built python:
You can use a different compiler by using the --compiler-cc option. 
If you use this option you can also specify these options:
--use-compiler=<your compiler>
--use-compile-opts="<compile opts>" These are specific -flags, if you use multiple
flags then you need to enclose the options in quotes.
--shared-args="<arguements for building shared libs>"
--link-with="<linker and args to linker>"

This has been tested with the a Sun Compiler.
cc: Sun WorkShop 6 update 1 C 5.2 2000/09/11

This is mainly for me if I want to test pyGlobus on a Sun machine.  


Testing:
  pyGlobus uses pyunit, the standard Python unit test framework. This is now a standard part of Python 2.1. It can be used with earlier versions of Python, but it must be downloaded separately from: http://pyunit.sourceforge.net/.

  To run the unit tests, cd to the test directory and run the buildconfig.py script. This script will ask you questions and generate a config.txt file appropriately for your site.  The configuation file consists of a series of sections, named by module, and attribute value pairs. For example, to test the gram client module, you need to set the resource manager to contact, and the rsl string to submit. Before running the test suite, make sure you have a valid globus proxy and have sourced the appropriate globus start up script to set your LD_LIBRARY_PATH variable. Then run "python test_pyGlobus.py".

Documentation:
  PyGlobus uses epydoc (http://epydoc.sourceforge.net) to generate html documentation. The
current documentation is in the doc directory. The documentation can by regenerated by running python setup.py build --run-epydoc. 


Additional Packages:
pyGlobus does not contain any code for accessing the Grid Information Service (GIS). See http://www-itg.lbl.gov/gtg/projects/misc/mds_python-ldap.html for information on using the standard python ldap module with the GIS.  

Finding Bugs: 
        Please use the bugzilla for pyGlobus at www-itg.lbl.gov/bugzilla/index.cgi, if you find any bugs in pyGlobus.

Update for 0.96
The Python/C interface for ftpControl module has been completed. But the module still needs to be extensively tested. Several bugs have been found and cleaned up in the ftpClient module.  

Contact:
  The email list python-discuss@globus.org is used to discuss issues involved with using pyGlobus. It is the main forum used to discuss bugs, report problems, and to announce new versions. To subscribe, send an email to "majordomo@globus.org" with a body containing "subscribe python-discuss".
  You can email me at KRJackson@lbl.gov.  pyGlobus is currently undergoing rapid developement so please check http://www-itg.lbl.gov/gtg/projects/pyGlobus/index.html for updates.
