Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

http://confluence.slac.stanford.edu/display/core/Third-party+Python+packages+for+extlibs+distribution+%28python+2.5.1-gl1%29

In addition there is an outstanding issue with zlib on rhel4, where it seems the libraries fails to build.  We'll have to see if that behavior continues in this next build. (zlib did fail again Oct 2, 2008)

As for tcl/tk 8.4, the plan is that we build python against the same version used by the ftools (sometimes referred to as heasoft).  We have a copy of heasoft installed at SLAC, currently on a rh9 build..but I'll be doing a rhel4 build soon.  That build is located at $GLASTROOT/applications/heasoft/

Installing Python 2.5.1 (built against tcltk 8.4) for Linux

Download Python 2.5.1 from http://www.python.org/download/releases/2.5.1/Image Removed

Unzip and change to the directory of the unpacked archive (e.g.,)

    tar -zxvf  Python-2.5.1.tgz

    cd Python-2.5.1

 run

    ./configure --prefix=<INSTALLATION DIRECTORY>

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

Running ./configure then creates a file named, "Setup" in the Modules directory, Modules/Setup 

Versions installed:
numpy 1.2.0
pyfits 1.3
4SuiteXML 1.0.2

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

Versions installed:
numpy 1.0.3
pyfits 1.1
4SuiteXML 1.0.2

Update

Emmaunel has installed python 2.5.1 at SLAC in the GLAST_EXT rh9_gcc32 area.  Documentation is available at https://confluence.slac.stanford.edu/display/SAS/Documentation+for+Installing+External+Libraries

Testing has commenced:

numpy tested via

...

pyfits tested by grabbing a FT2 file from:  root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Level1/LPA/prod/1.65/ft2/gll_pt_r0243158679_v001.fit then:

import pyfits
hdulist = pyfits.open('blah.fit')
hdulist.info()

4Suite-Xml tested via:

>>> from Ft.Xml import Domlette
>>> from Ft.Xml.Xslt import Processor
>>> print Processor
<module 'Ft.Xml.Xslt.Processor' from '/afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/python/2.5.1-gl1/gcc32/lib/python2.5/Ft/Xml/Xslt/Processor.pyc'>

...