paulb@22 | 1 | Introduction
|
paulb@22 | 2 | ------------
|
paulb@22 | 3 |
|
paulb@22 | 4 | The parallel module provides elementary support for parallel programming in
|
paulb@22 | 5 | Python using a fork-based process creation model in conjunction with a
|
paulb@22 | 6 | channel-based communications model implemented using socketpair and poll.
|
paulb@22 | 7 |
|
paulb@22 | 8 | Quick Start
|
paulb@22 | 9 | -----------
|
paulb@22 | 10 |
|
paulb@22 | 11 | Try running some of the tests:
|
paulb@22 | 12 |
|
paulb@22 | 13 | PYTHONPATH=. python tests/create_loop.py
|
paulb@22 | 14 | PYTHONPATH=. python tests/start_loop.py
|
paulb@22 | 15 |
|
paulb@22 | 16 | (Simple loop demonstrations which use two different ways of creating and
|
paulb@22 | 17 | starting the parallel processes.)
|
paulb@22 | 18 |
|
paulb@36 | 19 | PYTHONPATH=. python tests/start_indexer.py <directory>
|
paulb@22 | 20 |
|
paulb@36 | 21 | (A text indexing demonstration, where <directory> should be a directory
|
paulb@36 | 22 | containing text files to be indexed, although HTML files will also work well
|
paulb@36 | 23 | enough. After indexing the files, a prompt will appear, words or word
|
paulb@36 | 24 | fragments can be entered, and matching words and their locations will be
|
paulb@36 | 25 | shown. Run the program without arguments to see more information.)
|
paulb@22 | 26 |
|
paulb@22 | 27 | Contact, Copyright and Licence Information
|
paulb@22 | 28 | ------------------------------------------
|
paulb@22 | 29 |
|
paulb@22 | 30 | No Web page has yet been made available for this work, but the author can be
|
paulb@22 | 31 | contacted at the following e-mail address:
|
paulb@22 | 32 |
|
paulb@22 | 33 | paul@boddie.org.uk
|
paulb@22 | 34 |
|
paulb@22 | 35 | Copyright and licence information can be found in the docs directory - see
|
paulb@22 | 36 | docs/COPYING.txt and docs/LICENCE.txt for more information.
|
paulb@22 | 37 |
|
paulb@22 | 38 | Dependencies
|
paulb@22 | 39 | ------------
|
paulb@22 | 40 |
|
paulb@22 | 41 | This software depends on standard library features which are stated as being
|
paulb@22 | 42 | available only on "UNIX"; it has only been tested on a GNU/Linux system.
|
paulb@22 | 43 |
|
paulb@22 | 44 | Release Procedures
|
paulb@22 | 45 | ------------------
|
paulb@22 | 46 |
|
paulb@22 | 47 | Update the parallel __version__ attribute.
|
paulb@22 | 48 | Change the version number and package filename/directory in the documentation.
|
paulb@22 | 49 | Update the release notes (see above).
|
paulb@22 | 50 | Check the release information in the PKG-INFO file.
|
paulb@22 | 51 | Tag, export.
|
paulb@22 | 52 | Archive, upload.
|
paulb@22 | 53 | Update PyPI, PythonInfo Wiki, Vaults of Parnassus entries.
|
paulb@26 | 54 |
|
paulb@26 | 55 | Making Packages
|
paulb@26 | 56 | ---------------
|
paulb@26 | 57 |
|
paulb@26 | 58 | To make Debian packages:
|
paulb@26 | 59 |
|
paulb@26 | 60 | 1. Create new package directories under packages/debian if necessary.
|
paulb@26 | 61 | 2. Make a symbolic link in the distribution's root directory to keep the
|
paulb@26 | 62 | Debian tools happy:
|
paulb@26 | 63 |
|
paulb@31 | 64 | ln -s packages/debian/python2.4-parallel-module/debian/
|
paulb@26 | 65 |
|
paulb@26 | 66 | 3. Run the package builder:
|
paulb@26 | 67 |
|
paulb@26 | 68 | dpkg-buildpackage -rfakeroot
|
paulb@26 | 69 |
|
paulb@26 | 70 | 4. Locate and tidy up the packages in the parent directory of the
|
paulb@26 | 71 | distribution's root directory.
|