2.5.1
These are instructions for building Python 2.5.1 for the various OSes supported.
tiger-i386-32bit
These instructions should be performed as the glastrm user on the machine bldmac01 (accessible only from within SLAC).
- Download Python 2.5.1 from http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python if it doesn't already exist.
- Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
- Ungzip and Untar the file Python-2.5.1.tgz
- Change directory to Python-2.5.1
- Set the environment variable EXTRA_CFLAGS to "-fno-common"
- Execute ./configure --prefix /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40 --enable-unicode=ucs2
- Edit the file Modules/posixmodule.c and change lines 342 and 360 to "#ifdef _APPLE_" (without quotes) and save/exit.
- Execute make
- Execute make install
- Leave and erase the current directory (Python-2.5.1)
Additional Python Modules
These modules should additionally be installed into python.
NumPy - 1.2.0
- Download numpy-1.2.0.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103&release_id=628858 and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/ if it doesn't already exist.
- Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
- Extract numpy-1.2.0.tar.gz
- Change directory to numpy-1.2.0
- Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40/bin/python setup.py install
- Leave and erase the current directory (numpy-1.2.0)
PyFITS - 1.3
- Download pyfits-1.3.tar.gz from http://www.stsci.edu/resources/software_hardware/pyfits/pyfits-1.3.tar.gz and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/ if it doesn't already exist.
- Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
- Extract pyfits-1.3.tar.gz
- Change directory to pyfits-1.3
- Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40/bin/python setup.py install
- Leave and erase pyfits-1.3
4Suite XML - 1.0.2
- Download 4Suite-XML-1.0.2.tar.gz from http://downloads.sourceforge.net/sourceforge/foursuite/4Suite-XML-1.0.2.tar.gz?use_mirror=voxel and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/ if it doesn't already exist.
- Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
- Extract 4Suite-XML-1.0.2.tar.gz
- Change directory to 4Suite-XML-1.0.2
- Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40/bin/python setup.py install --prefix /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40
- Leave and erase 4Suite-XML-1.0.2