pprocess

README.txt

56:fe4ac9803e8a
2006-11-19 paulb [project @ 2006-11-19 00:10:24 by paulb] Fixed process accounting.
     1 Introduction
     2 ------------
     3 
     4 The pprocess module provides elementary support for parallel programming in
     5 Python using a fork-based process creation model in conjunction with a
     6 channel-based communications model implemented using socketpair and poll.
     7 
     8 Quick Start
     9 -----------
    10 
    11 Try running some of the tests:
    12 
    13 PYTHONPATH=. python tests/create_loop.py
    14 PYTHONPATH=. python tests/start_loop.py
    15 
    16 (Simple loop demonstrations which use two different ways of creating and
    17 starting the parallel processes.)
    18 
    19 PYTHONPATH=. python tests/start_indexer.py <directory>
    20 
    21 (A text indexing demonstration, where <directory> should be a directory
    22 containing text files to be indexed, although HTML files will also work well
    23 enough. After indexing the files, a prompt will appear, words or word
    24 fragments can be entered, and matching words and their locations will be
    25 shown. Run the program without arguments to see more information.)
    26 
    27 Some examples are also found in the examples directory, notably the PyGmy
    28 raytracer modified to use pprocess:
    29 
    30 cd examples/PyGmy
    31 PYTHONPATH=../..:. python scene.py
    32 
    33 Contact, Copyright and Licence Information
    34 ------------------------------------------
    35 
    36 No Web page has yet been made available for this work, but the author can be
    37 contacted at the following e-mail address:
    38 
    39 paul@boddie.org.uk
    40 
    41 Copyright and licence information can be found in the docs directory - see
    42 docs/COPYING.txt and docs/LICENCE.txt for more information.
    43 
    44 For the PyGmy raytracer example, different copyright and licence information
    45 is provided in the docs directory - see docs/COPYING-PyGmy.txt and
    46 docs/LICENCE-PyGmy.txt for more information.
    47 
    48 Dependencies
    49 ------------
    50 
    51 This software depends on standard library features which are stated as being
    52 available only on "UNIX"; it has only been tested on a GNU/Linux system.
    53 
    54 New in parallel 0.2.2 (Changes since parallel 0.2.1)
    55 ----------------------------------------------------
    56 
    57   * Changed the status testing in the Exchange class, potentially fixing the
    58     premature closure of channels before all data was read.
    59   * Fixed the PyGmy raytracer example's process accounting by relying on the
    60     possibly more reliable Exchange behaviour, whilst also preventing
    61     erroneous creation of "out of bounds" processes.
    62 
    63 New in parallel 0.2.1 (Changes since parallel 0.2)
    64 --------------------------------------------------
    65 
    66   * Added a PyGmy raytracer example.
    67   * Updated copyright and licensing details (FSF address, additional works).
    68 
    69 New in parallel 0.2 (Changes since parallel 0.1)
    70 ------------------------------------------------
    71 
    72   * Changed the name of the included module from parallel to pprocess in order
    73     to avoid naming conflicts with PyParallel.
    74 
    75 Release Procedures
    76 ------------------
    77 
    78 Update the pprocess __version__ attribute.
    79 Change the version number and package filename/directory in the documentation.
    80 Update the release notes (see above).
    81 Check the release information in the PKG-INFO file.
    82 Tag, export.
    83 Archive, upload.
    84 Update PyPI, PythonInfo Wiki, Vaults of Parnassus entries.
    85 
    86 Making Packages
    87 ---------------
    88 
    89 To make Debian-based packages:
    90 
    91   1. Create new package directories under packages if necessary.
    92   2. Make a symbolic link in the distribution's root directory to keep the
    93      Debian tools happy:
    94 
    95      ln -s packages/ubuntu-hoary/python2.4-parallel-pprocess/debian/
    96 
    97   3. Run the package builder:
    98 
    99      dpkg-buildpackage -rfakeroot
   100 
   101   4. Locate and tidy up the packages in the parent directory of the
   102      distribution's root directory.