  This file contains installation instructions for expectmodule.

Prerequisite: 
-------------

To install expectmodule you need the Expect and Tcl packages. 

This version has been tested with Python 1.2, Tcl 7.3 and Expect
5.13.0.

You can find these packages in the following locations:
  Python: ftp://ftp.cwi.nl/pub/python
  Expect: ftp://ftp.cme.nist.gov/pub/expect
  Tcl:    ftp://ftp.cs.berkeley.edu/ucb/tcl
or any mirror site.

Warning:
--------

The libexpect library 5.13 and older has got a bug in the internal
expect() function (not directly related to expectmodule). It has been
fixed in the version 5.14. If you've got an old version upgrade expect
first.


Installation:
-------------

Copy the expectmodule.c file in the python/Modules directory or just
create a link, for example:
  ln -s ~/expy/expectmodule.c /usr/src/python/Modules

Add the 2 following lines at the end of python/Modules/Setup:
  # Expect interface
  expect expectmodule.c -lexpect -ltcl
or just type 'cat ~/expy/Setup.in >> /usr/src/python/Modules/Setup',
which will do the same. Be careful not to add this line more than once.

If the expect or tcl include files are not in your include path you
need to add a -I command line option to this line, as in:
  expect expectmodule.c -I/usr/src/expect -I/usr/src/tcl -lexpect -ltcl

If the expect or tcl libraries are not in your library path you need to
either specify the full path or add a -L command line option, as in:
  expect expectmodule.c /usr/src/expect/libexpect.a /usr/src/tcl/libtcl.a
or
  expect expectmodule.c -L/usr/local/lib -lexpect -ltcl

Recompile and install python.
