# HG changeset patch # User paulb # Date 1189819280 0 # Node ID e41c540aa2b2b79895b4eadaf497c9c60055651b # Parent 0975a26e47a00abbb6690d90ab78c0a0b0189015 [project @ 2007-09-15 01:21:20 by paulb] Updated release information. diff -r 0975a26e47a0 -r e41c540aa2b2 PKG-INFO --- a/PKG-INFO Sat Sep 15 01:21:12 2007 +0000 +++ b/PKG-INFO Sat Sep 15 01:21:20 2007 +0000 @@ -1,18 +1,18 @@ Metadata-Version: 1.1 Name: parallel -Version: 0.2.6 +Version: 0.3 Author: Paul Boddie Author-email: paul at boddie org uk Maintainer: Paul Boddie Maintainer-email: paul at boddie org uk -Download-url: http://www.boddie.org.uk/python/downloads/parallel-0.2.6.tar.gz +Download-url: http://www.boddie.org.uk/python/downloads/parallel-0.3.tar.gz Summary: Elementary parallel programming for Python License: LGPL (version 3 or later) Description: The pprocess module provides elementary support for parallel programming in Python using a fork-based process creation model in conjunction with a channel-based communications model implemented using socketpair and poll. -Keywords: parallel pprocess fork socketpair socket channel +Keywords: parallel pprocess fork socketpair socket channel map pmap Queue Platform: Any Classifier: Development Status :: 3 - Alpha Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) diff -r 0975a26e47a0 -r e41c540aa2b2 README.txt --- a/README.txt Sat Sep 15 01:21:12 2007 +0000 +++ b/README.txt Sat Sep 15 01:21:20 2007 +0000 @@ -10,14 +10,31 @@ Quick Start ----------- -Try running the simple example: +Try running the simple examples: PYTHONPATH=. python examples/simple.py +PYTHONPATH=. python examples/simple_create.py +PYTHONPATH=. python examples/simple_managed.py +PYTHONPATH=. python examples/simple_map.py +PYTHONPATH=. python examples/simple_pmap.py +PYTHONPATH=. python examples/simple_queue.py (A simple example which shows how a limited number of processes can be used to -perform a parallel computation.) +perform a parallel computation. The simple_map.py program is a sequential +version of the other programs.) + +The tutorial provides some information about the examples: docs/tutorial.xhtml + +The PyGmy raytracer modified to use pprocess can be run to investigate the +potential for speed increases: -Or studying some elementary tests: +cd examples/PyGmy +PYTHONPATH=../..:. python scene.py + +(This should produce a file called test.tif - a TIFF file containing a +raytraced scene image.) + +There are some elementary tests: PYTHONPATH=. python tests/create_loop.py PYTHONPATH=. python tests/start_loop.py @@ -33,15 +50,6 @@ fragments can be entered, and matching words and their locations will be shown. Run the program without arguments to see more information.) -Some examples are also found in the examples directory, notably the PyGmy -raytracer modified to use pprocess: - -cd examples/PyGmy -PYTHONPATH=../..:. python scene.py - -(This should produce a file called test.tif - a TIFF file containing a -raytraced scene image.) - Contact, Copyright and Licence Information ------------------------------------------ @@ -63,8 +71,8 @@ This software depends on standard library features which are stated as being available only on "UNIX"; it has only been tested on a GNU/Linux system. -New in parallel 0.2.6 (Changes since parallel 0.2.5) ----------------------------------------------------- +New in parallel 0.3 (Changes since parallel 0.2.5) +-------------------------------------------------- * Added managed callables: wrappers around callables which cause them to be automatically managed by the exchange from which they were acquired. @@ -72,7 +80,16 @@ sends the result of that function over the supplied channel when invoked. * Added a Map class which attempts to emulate the built-in map function, along with a pmap function using this class. + * Added a Queue class which provides a simpler iterator-style interface to + data produced by created processes. + * Added a create method to the Exchange class and an exit convenience + function to the module. + * Changed the Exchange implementation to not block when attempting to start + new processes beyond the process limit: such requests are queued and + performed as running processes are completed. This permits programs using + the start method to proceed to consumption of results more quickly. * Extended and updated the examples. + * Added Ubuntu Feisty (7.04) package support. New in parallel 0.2.5 (Changes since parallel 0.2.4) ---------------------------------------------------- @@ -143,6 +160,10 @@ ln -s packages/ubuntu-hoary/python2.4-parallel-pprocess/debian/ + Or: + + ln -s packages/ubuntu-feisty/python-pprocess/debian/ + 3. Run the package builder: dpkg-buildpackage -rfakeroot