1
python-workqueue - README
2
=========================
7
This is a set of Python bindings for the `WorkQueue`_ Master/Worker Framework.
13
- `Python <http://www.python.org>`_ (2.6, 2.7)
14
- `CCTools <http://cse.nd.edu/~ccl/software/download.shtml>`_
16
Although other versions of Python may work, python-workqueue has only been
17
tested with Python 2.4 and 2.6.
22
Configure your local environment using ``configure.py``::
24
$ ./configure.py -i <path_to_includes> -l <path_to_libs>
26
For example if you are on AFS, you can point the script to the public CCTools
29
$ ./configure.py -i /afs/nd.edu/user37/ccl/software/cctools/include \
30
-l /afs/nd.edu/user37/ccl/software/cctools/lib
32
To build the Python module, use the ``build_ext`` command with the ``setup.py``
35
$ ./setup.py build_ext --inplace
37
To enable some debugging, build the module as so::
39
$ ./setup.py build_ext --inplace --debug --undef NDEBUG
41
To install the Python module, use ``install`` command with the ``setup.py``
44
$ ./setup.py install --prefix <dest_dir>
49
Please see the ``workqueue_example.py`` for an example of how to use the
50
library. For the most part there is a 1-to-1 correspondence between the C
51
WorkQueue functions and the Python methods.
53
Execute the example as follows::
55
$ python workqueue_example.py
57
Remember to start a worker.
59
.. _`WorkQueue`: http://www.cse.nd.edu/~ccl/software/workqueue