Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download Python 2.5.1 from http://www.python.org/download/releases/2.5.1/
  2. Unzip and change to the directory of the unpacked archive, E.g., Run, make installtar
    • *Run, "./configure --prefix=<installation directory>"
    • Edit the file, "Setup," in the "Modules" directory, "Modules/Setup"
      • Uncomment the line corresponding to "zlib"
      • Find the section on tcltk and uncomment
    • Run, make
      • tar -zxvf  Python-2.5.1.tgz
      • cd Python-2.5.
      1Run configure

...

    • 1
  1. *Run, "./configure --prefix=

...

 where <INSTALLATION DIRECTORY> is the location where you want to install the bin/ and include/ directories.  Example,

...

  1. <installation directory>":
    • ./configure --prefix=/afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit/python/2.5.1-gl1/gcc34/ 

...

  1. Edit the file, "Setup," in the "Modules" directory, "Modules/Setup"
    • Enable zlib (Uncomment the line corresponding to "zlib")
    • To build Python against tcltck 8.4, there are three lines to edit in the file (I would suggest searching for "_tkinter" in the Modules/Setup file, then following the documentation)
      1. Enable tkinter, by Uncommenting the line "_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT "
      2. Uncomment and edit to reflect where your Tcl/Tk libraries are, example
        • "-L/afs/slac.stanford.edu/g/glast/applications/heasoft/PROD/tcltk/i686-pc-linux-gnu-libc2.3.2/lib"
      3. Uncomment and edit to reflect where your Tcl/Tk headers are
      4. Uncomment and edit to reflect your Tcl/Tk versions are
  2. Run,
    • make
    • make install

* Modules/Setup  Step 3 must be done before 4.   Running, "./configure," generates the file Modules/Setup 

If you run into any problems during the "make," finding tcl8.4 or tk8.4 libraries, set the environment variable, LD_RUN_PATH to point to the location of the tcltk libraries:
make clean

setenv LD_RUN_PATH <Location of tcltk libraries>

make

make install

unsetenv LD_RUN_PATH 

--- 

We have confirmed with Jim Chiang that it is numpy (rather than numarray) we should be supporting.

...