Versions Compared

Key

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

...

distribute 0.6.16 for use with pip

  1. curl -O http://python-distribute.org/distribute_setup.pyImage Removed
  2. python distribute_setup.py

...

easy_install replacement that should also work with python 3.0

  1. curl -O https://github.com/pypa/pip/raw/master/contrib/get-pip.pyImage Removed
  2. python get-pip.py

...

  1. Download numpy-1.5.1.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103&release_id=628858
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract numpy-1.5.1.tar.gz
  4. Change directory to numpy-1.5.1
  5. python setup.py build --fcompiler=gnu (for g77) or gnu95 for gfortran.
    It seems the rhel4s have blas and lapack linked against g77, while rhel5 uses gfortran
  6. python setup.py install
  7. Run the test routine by starting up python and doing:
    import numpy
    numpy.test()
  8. Leave and erase the current directory (numpy-1.5.1)

PyFITS - 2.

...

4.

...

0

...

  1. pip install pyfits

matplotlib 1.0.0

Had to provide explicit web link to version we wanted to install, otherwise the default seems to be 0.91

  1. pip install 1.tar.gz from http://www.stsci.edu/resources/software_hardware/pyfits/pyfits-2.1.1.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gzImage Added

pywcs-1.10-4.7

  1. pip install pywcs

APLpy-0.9.5

  1. pip install APLpy

4Suite XML - 1.0.2

This module was not recognized by pip.  Using easy_install instead.

  1. easy_install 4Suite-XML

Scipy - 0.9.0

  1. Download ipython-0.10.tar.gz from http://www.scipy.org/ and save to
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract pyfits-2.1.1.tar.gz
  4. Change directory to pyfits-2.1.1
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python /2.6.5/gcc34/bin/python setup.py install
  6. Leave and erase pyfits-2.1.1

matplotlib 0.99

  1. if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract matplotlibscipy-0.997.12.tar.gz
  4. Change directory to matplotlibscipy-0.99.1/ 
  5. setenv DISPLAY localhost:0.0
  6. xhost +
  7. Edit setup.cfg set wxagg = False, macosx = False7.2
  8. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py build
  9. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install
  10. Leave and erase matplotlib-0.99.1/

pywcs-1.7-4.4.4

  1. install
  2. Leave and erase scipy-0.7.2

iPython - 0.10.2

  1. pip install ipython

Scipy - 0.7.2

  1. Download ipython-0.10.tar.gz from http://www.scipy.org/ and save Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python Extract pywcs-1.7-4.4.4.tar.gzif it doesn't already exist.
  2. Change directory to pywcs-1.7-4.4.4Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install
  3. Leave and erase pywcs-1.7-4.4.4

APLpy-0.9.4

  1. Extract scipy-0.7.2.tar.gz
  2. Change directory to scipy-0.7.2
  3. Execute Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  4. Extract APLpy-0.9.4.tar.gz
  5. Change directory to APLpy-0.9.4
  6. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5//2.6.5/gcc34/bin/python setup.py install
  7. Leave and erase APLpyscipy-0.97.4

4Suite XML - 1.0.2

  1. 2

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).

  1. Download Python 2.5.1 Download 4Suite-XML-1.0.2.tar.gz from http://downloadswww.sourceforgepython.netorg/sourceforgeftp/foursuite/4Suite-XML-1.0.2.tar.gz?use_mirror=voxelpython/2.5.1/Python-2.5.1.tgz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/pythonExtract 4Suite-XML-1.0.2.tar.gz/python
  3. Ungzip and Untar the file Python-2.5.1.tgz
  4. Change directory to 4SuitePython-XML-12.0.25.1
  5. Set the environment variable EXTRA_CFLAGS to "-fno-common"
  6. Execute ./configure --prefix Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python/2.65.5/gcc34/bin/python setup.py install --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34
  7. Leave and erase 4Suite-XML-1.0.2

iPython - 0.10

  1. 1-gl3/gcc40 --enable-unicode=ucs2
  2. Edit the file Modules/posixmodule.c and change lines 342 and 360 to "#ifdef _APPLE_" (without quotes) and save/exit.
  3. Execute make
  4. Execute make install
  5. 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

  1. Download numpy-1.2.0Download ipython-0.10.tar.gz from http://ipythonsourceforge.scipy.orgnet/distproject/ipython-0.10.tar.gzshowfiles.php?group_id=1369&package_id=175103&release_id=628858 and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python/ if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python
  3. Extract ipythonnumpy-01.102.0.tar.gz
  4. Change directory to ipythonnumpy-1.2.0.10
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python/2.65.51-gl3/gcc34gcc40/bin/python setup.py install
  6. Leave and erase ipython-0.10

Scipy - 0.7.2

  1. the current directory (numpy-1.2.0)

PyFITS - 1.3

  1. Download pyfits-1.3Download ipython-0.10.tar.gz from http://www.scipy.org/stsci.edu/resources/software_hardware/pyfits/pyfits-1.3.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python/ if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python
  3. Extract scipypyfits-01.73.2.tar.gz
  4. Change directory to scipypyfits-01.7.23
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4tiger-i686i386-32bit-gcc34/python/2.65.51-gl3/gcc34gcc40/bin/python setup.py install
  6. Leave and erase scipy-0.7pyfits-1.3

4Suite XML - 1.0.2

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).

  1. Download Python 2.5.1 from http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz 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.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
  3. Ungzip and Untar the file Python-2.5.1.tgzExtract 4Suite-XML-1.0.2.tar.gz
  4. Change directory to Python4Suite-XML-21.50.1
  5. Set the environment variable EXTRA_CFLAGS to "-fno-common"
  6. 2
  7. Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40/bin/python setup.py install Execute ./configure --prefix /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40
  8. Leave and erase 4Suite--enable-unicode=ucs2
  9. Edit the file Modules/posixmodule.c and change lines 342 and 360 to "#ifdef _APPLE_" (without quotes) and save/exit.
  10. Execute make
  11. Execute make install
  12. Leave and erase the current directory (Python-
  13. XML-1.0.2

2.5.1-gl4

These are the instructions to build python 2.5.1

...

-gl4 on the various supported platforms

tiger-i386-32bit-gcc40

These instructions should be performed as the glastrm user on the machine bldmac01 (accessible only from within SLAC).

  1. Download Python 2.5.1

Additional Python Modules

These modules should additionally be installed into python.

NumPy - 1.2.0

  1. Download numpy-1.2.0.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103&release_id=628858www.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-gcc40/python / if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
  3. Extract numpy-1.Ungzip and Untar the file Python-2.05.tar1.gztgz
  4. Change directory to numpyPython-12.2.05.1
  5. Set the environment variable EXTRA_CFLAGS to "-fno-common"
  6. Execute ./configure --prefix Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl3gl4/gcc40 /bin/python setup.py --enable-unicode=ucs2
  7. Edit the file Modules/posixmodule.c and change lines 342 and 360 to "#ifdef _APPLE_" (without quotes) and save/exit.
  8. Execute make
  9. Execute make install
  10. Leave and erase the current directory (numpyPython-12.25.01)

...

Additional Python Modules

These modules should additionally be installed into python.

NumPy - 1.2.

...

0

  1. Download pyfitsnumpy-1.32.0.tar.gz from http://wwwsourceforge.stsci.edunet/resources/software_hardware/pyfits/pyfits-1.3.tar.gzproject/showfiles.php?group_id=1369&package_id=175103&release_id=628858 and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/ if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python
  3. Extract pyfitsnumpy-1.32.0.tar.gz
  4. Change directory to pyfitsnumpy-1.2.30
  5. Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl3gl4/gcc40/bin/python setup.py install
  6. Leave and erase pyfitsthe current directory (numpy-1.2.30)

...

PyFITS - 2.1.

...

1

  1. Download 4Suitepyfits-XML-2.1.0.21.tar.gz from http://downloadswww.sourceforgestsci.net/sourceforge/foursuite/4Suite-XML-1.0.2.tar.gz?use_mirror=voxeledu/resources/software_hardware/pyfits/pyfits-2.1.1.tar.gz and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/ if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python
  3. Extract 4Suitepyfits-XML-2.1.0.21.tar.gz
  4. Change directory to 4Suitepyfits-XML-2.1.0.21
  5. Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl3gl4/gcc40/bin/python setup.py install --prefix
  6. Leave and erase pyfits-2.1.1

4Suite XML - 1.0.2

  1. 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-gcc40/python/ 2.5.1-gl3/gcc40if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python
  3. Extract Leave and erase 4Suite-XML-1.0.22.

...

  1. tar.

...

  1. gz
  2. Change directory to 4Suite-XML-1.0.2
  3. Execute /afs/slac/g/glast/ground/GLAST_EXT/

These are the instructions to build python 2.5.1-gl4 on the various supported platforms

  1. tiger-i386-32bit-gcc40

...

These instructions should be performed as the glastrm user on the machine bldmac01 (accessible only from within SLAC).

  1. Download Python 2/python/2.5.1 from http:-gl4//www.python.org/ftpgcc40/bin/python /2.5.1/Python-2.5.1.tgz and save to setup.py install --prefix /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python if it doesn't already exist./2.5.1-gl4/gcc40
  2. Leave and erase 4Suite-XML-1.0.2

iPython - 0.10

  1. Download ipython-0.10.tar.gz from http://ipython.scipy.org/dist/ipython-0.10.tar.gz and save to /afs/slac/Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
  2. Ungzip and Untar the file Python-2.5.1.tgz
  3. Change directory to Python-2.5.1
  4. Set the environment variable EXTRA_CFLAGS to "-fno-common"
  5. -gcc40/python/ if it doesn't already exist.
  6. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python
  7. Extract ipython-0.10.tar.gz
  8. Change directory to ipython-0.10
  9. Execute /Execute ./configure --prefix /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl4/gcc40/bin/python setup.py install
  10. Leave and erase ipython--enable-unicode=ucs2
  11. Edit the file Modules/posixmodule.c and change lines 342 and 360 to "#ifdef _APPLE_" (without quotes) and save/exit.
  12. Execute make
  13. Execute make install
  14. 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

  1. 0.10

redhat5-i686-64bit-gcc41

These instructions should be performed as the glastrm user 

  1. Download Python 2.5.1 from http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz 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-gcc40gcc41/python / if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tigerredhat5-i386i686-32bit64bit-gcc40gcc41/python
  3. Extract numpy-1.Ungzip and Untar the file Python-2.05.tar1.gztgz
  4. Change directory to numpyPython-12.2.05.1
  5. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  6. Execute ./configure --prefix /Execute /afs/slac/g/glast/ground/GLAST_EXT/tigerredhat5-i386i686-32bit64bit-gcc40gcc41/python/2.5.1-gl4/gcc40/bin/python setup.py gcc41
  7. Execute make
  8. Execute make install
  9. Leave and erase the current directory (numpyPython-12.25.01)

...

2.

...

5.1

...

-gl5 

redhat4-i686-32bit-gcc34

These are instructions for building Python 2.5.1 for the various OSes supported.

These instructions should be performed as the glastrm user 

  1. Download Python 2.5.1 Download pyfits-2.1.1.tar.gz from http://www.stscipython.eduorg/resourcesftp/software_hardware/pyfits/pyfitspython/2.5.1/Python-2.15.1.tar.gztgz and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40gcc41/python / if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tigerredhat4-i386i686-32bit-gcc40gcc34/python
  3. Extract pyfitsUngzip and Untar the file Python-2.15.1.tar.gztgz
  4. Change directory to pyfitsPython-2.15.1
  5. Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl4/gcc40/bin/python setup.py install
  6. Leave and erase pyfits-2.1.1

4Suite XML - 1.0.2

  1. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  2. edit setup.py, in detect_modules() change the lines from:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')

        to:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
        add_dir_to_list(self.compiler.library_dirs, '/usr/lib')
        add_dir_to_list(self.compiler.include_dirs, '/usr/include')

  1. Execute ./configure --prefix /afs/slac.stanford.eduDownload 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/tigerredhat4-i386i686-32bit-gcc40gcc34/python/ if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python
  3. Extract 4Suite-XML-1.0.2.tar.gz
  4. 2.5.1-gl5/gcc34
  5. Execute make
  6. Execute make install
  7. Leave and erase the current directory (Python-2.5.1)

Additional Python Modules

These modules should additionally be installed into python.

NumPy - 1.4.0

  1. Download numpy-1.4.0.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103&release_id=628858 and save to /afs/slac.stanford.edu
  2. Change directory to 4Suite-XML-1.0.2
  3. Execute /afs/slac/g/glast/ground/GLAST_EXT/tigerredhat4-i386i686-32bit-gcc40gcc34/python /2.5.1-gl4/gcc40/bin/python setup.py install --prefix if it doesn't already exist.
  4. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tigerredhat4-i386i686-32bit-gcc40/python/2.5.1-gl4/gcc40
  5. Leave and erase 4Suite-XML-1.0.2

iPython - 0.10

  1. gcc34/python
  2. Extract numpy-1.4.0.tar.gz
  3. Change directory to numpy-1.4.0
  4. Execute /afs/slac.stanford.eduDownload ipython-0.10.tar.gz from http://ipython.scipy.org/dist/ipython-0.10.tar.gz and save to /afs/slac/g/glast/ground/GLAST_EXT/tigerredhat4-i386i686-32bit-gcc40gcc34/python/ if it doesn't already exist.Change directory 2.5.1-gl5/gcc34/bin/python setup.py install
  5. Leave and erase the current directory (numpy-1.4.0)

PyFITS - 2.1.1

  1. Download pyfits-2.1.1.tar.gz from http://www.stsci.edu/resources/software_hardware/pyfits/pyfits-2.1.1.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686tiger-i386-32bit-gcc40gcc34/python
  3. Extract ipythonpyfits-02.1.101.tar.gz
  4. Change directory to ipythonpyfits-02.1.101
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tigerredhat4-i386i686-32bit-gcc40gcc34/python/2.5.1-gl4gl5/gcc40gcc34/bin/python setup.py install
  6. Leave and erase ipython-pyfits-2.1.1

matplotlib 0.

...

99

  1. Change directory

redhat5-i686-64bit-gcc41

These instructions should be performed as the glastrm user 

  1. 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.stanford.edu/g/glast/ground/GLAST_EXT/tigerredhat4-i386i686-32bit-gcc41/python if it doesn't already exist.gcc34/python
  2. Extract matplotlib-0.99.1.tar.gz
  3. Change directory to matplotlib-0.99.1/ 
  4. setenv DISPLAY localhost:0.0
  5. xhost +
  6. Edit setup.cfg set wxagg = False, macosx = False
  7. Execute /afs/slac.stanford.eduChange directory to /afs/slac/g/glast/ground/GLAST_EXT/redhat5redhat4-i686-64bit32bit-gcc41gcc34/pythonUngzip and Untar the file Python-/2.5.1.tgz
  8. Change directory to Python-2.5.1
  9. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  10. -gl5/gcc34/bin/python setup.py build
  11. Execute /afs/slac.stanford.edu/g/glastExecute ./configure --prefix /afs/slac/g/glast/ground/GLAST_EXT/redhat5redhat4-i686-64bit32bit-gcc41gcc34/python/2.5.1-gl4/gcc41
  12. Execute make
  13. Execute make gl5/gcc34/bin/python setup.py install
  14. Leave and erase the current directory (Python-2.5matplotlib-0.99.1)

2.5.1-gl5 

redhat4-i686-32bit-gcc34

These are instructions for building Python 2.5.1 for the various OSes supported.

These instructions should be performed as the glastrm user 

  1. /

pywcs-1.7-4.4.4

  1. Change directory to /afs/slac.stanford.edu/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/tigerredhat4-i386i686-32bit-gcc41/python if it doesn't already exist.gcc34/python
  2. Extract pywcs-1.7-4.4.4.tar.gz
  3. Change directory to pywcs-1.7-4.4.4
  4. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/pythonUngzip and Untar the file Python-/2.5.1.tgz
  5. Change directory to Python-2.5.1
  6. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  7. edit setup.py, in detect_modules() change the lines from:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')

        to:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
        add_dir_to_list(self.compiler.library_dirs, '/usr/lib')
        add_dir_to_list(self.compiler.include_dirs, '/usr/include')

  1. -gl5/gcc34/bin/python setup.py install
  2. Leave and erase pywcs-1.7-4.4.4

APLpy-0.9.4

  1. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  2. Extract APLpy-0.9.4.tar.gz
  3. Change directory to APLpy-0.9.4
  4. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34
  5. Execute make
  6. Execute make install
  7. Leave and erase the current directory (Python-2.5.1)

Additional Python Modules

These modules should additionally be installed into python.

NumPy - 1.4.0

  1. /bin/python setup.py install
  2. Leave and erase APLpy-0.9.4

4Suite XML - 1.0.2

  1. Download 4Suite-XML-1.0.2Download numpy-1.4.0.tar.gz from http://downloads.sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103&release_id=628858sourceforge/foursuite/4Suite-XML-1.0.2.tar.gz?use_mirror=voxel and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/pythonExtract numpypythonExtract 4Suite-XML-1.40.02.tar.gz
  3. Change directory to numpy4Suite-XML-1.40.02
  4. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install Leave and erase the current directory (numpy -1.4.0)

PyFITS - 2.1.1

  1. Download pyfits-2.1.1.tar.gz from http://www.stsci.edu/resources/software_hardware/pyfits/pyfits-2.1.1.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract pyfits-2.1.1.tar.gz
  4. Change directory to pyfits-2.1.1
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install
  6. Leave and erase pyfits-2.1.1

matplotlib 0.99

  1. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  2. Extract matplotlib-0.99.1.tar.gz
  3. Change directory to matplotlib-0.99.1/ 
  4. setenv DISPLAY localhost:0.0
  5. xhost +
  6. Edit setup.cfg set wxagg = False, macosx = False
  7. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py build
  8. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install
  9. Leave and erase matplotlib-0.99.1/

pywcs-1.7-4.4.4

  1. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  2. Extract pywcs-1.7-4.4.4.tar.gz
  3. Change directory to pywcs-1.7-4.4.4
  4. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install
  5. Leave and erase pywcs-1.7-4.4.4

APLpy-0.9.4

  1. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  2. Extract APLpy-0.9.4.tar.gz
  3. Change directory to APLpy-0.9.4
  4. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install
  5. Leave and erase APLpy-0.9.4

4Suite XML - 1.0.2

  1. 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.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/pythonExtract 4Suite-XML-1.0.2.tar.gz
  3. Change directory to 4Suite-XML-1.0.2
  4. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34
  5. Leave and erase 4Suite-XML-1.0.2

iPython - 0.10

  1. Download ipython-0.10.tar.gz from http://ipython.scipy.org/dist/ipython-0.10.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract ipython-0.10.tar.gz
  4. Change directory to ipython-0.10
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install
  6. Leave and erase ipython-0.10

2.6.5

redhat4-i686-32bit-gcc34

These are instructions for building Python 2.6.5 for the various OSes supported.

These instructions should be performed as the glastrm user 

  1. Download Python 2.6.5 from http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tgz and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc41/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Ungzip and Untar the file Python-2.6.5.tgz
  4. Change directory to Python-2.6.5
  5. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  6. edit setup.py, in detect_modules() change the lines from:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')

        to:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
        add_dir_to_list(self.compiler.library_dirs, '/usr/lib')
        add_dir_to_list(self.compiler.include_dirs, '/usr/include')

  1. -prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl5/gcc34
  2. Leave and erase 4Suite-XML-1.0.2

iPython - 0.10

  1. Download ipython-0.10.tar.gz from http://ipython.scipy.org/dist/ipython-0.10.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract ipython-0.10.tar.gz
  4. Change directory to ipython-0.10
  5. Execute Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34
  6. Execute make
  7. Execute make -gcc34/python/2.5.1-gl5/gcc34/bin/python setup.py install
  8. Leave and erase the current directory (Python-ipython-0.10

2.6.5

...

Windows-vc90

redhat4-i686-32bit-gcc34

These are instructions for building Python Note that 2.6.5 defaults to VS2008 as do the various add-onsfor the various OSes supported.

These instructions should be performed as the glastrm user 

  1. Download Python 2.6.5 installer from http://www.python.org
  2. Add
    1. numpy 1.4.1
    2. pyfits 2.3.1
    3. matplotlib 0.99.3
    4. pywcs 1.81-4.4.4 using tar.gz  using python setup.py install
    5. aplpy 0.9.4 tar.gz using python setup.py install
    6. 4SuiteXML 1.0.2 using zip file
    7. scipy 0.8.0b1
    8. ipython 0.10, install using tar.gz using python setup.py install
    9. setuptools 0.6c11
    10. nose 0.11.3 install from tar.gz using python setup.py install

Additional Python Modules

These modules should additionally be installed into python.

NumPy - 1.4.0

  1. /ftp/python/2.6.5/Python-2.6.5.tgz and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc41/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Ungzip and Untar the file Python-2.6.5.tgz
  4. Change directory to Python-2.6.5
  5. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  6. edit setup.py, in detect_modules() change the lines from:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')

        to:

        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
        add_dir_to_list(self.compiler.library_dirs, '/usr/lib')
        add_dir_to_list(self.compiler.include_dirs, '/usr/include')

  1. Execute ./configure --prefix
  2. Download numpy-1.4.0.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103&release_id=628858 and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  3. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  4. Extract numpy-1.4.0.tar.gz
  5. Change directory to numpy-1.4.0
  6. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34
  7. Execute make
  8. Execute make install
  9. Leave and erase the current directory (Python-2.6.5)

Windows-vc90

Note that 2.6.5 defaults to VS2008 as do the various add-ons

  1. Download Python 2.6.5 installer from http:/gcc34/bin/www.python setup.py installorg
  2. Add
    1. numpy
    Leave and erase the current directory (numpy-
    1. 1.4.1
    2. pyfits 2.
    0)

PyFITS - 2.1.1

    1. 3.1
    2. matplotlib 0.99.3
    3. pywcs 1.81-4.4.4 using tar.gz  using python setup.py install
    4. aplpy 0.9.4 tar.gz using python setup.py install
    5. 4SuiteXML 1.0.2 using zip file
    6. scipy 0.8.0b1
    7. ipython 0.10, install using tar.gz using python setup.py install
    8. setuptools 0.6c11
    9. nose 0.11.3 install from tar.gz using python setup.py install

Additional Python Modules

These modules should additionally be installed into python.

NumPy - 1.4.0

  1. Download numpy-1.4.0.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103&release_id=628858 and save to
  2. Download pyfits-2.1.1.tar.gz from http://www.stsci.edu/resources/software_hardware/pyfits/pyfits-2.1.1.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  3. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  4. Extract pyfits-2.1.1.tar.gz
  5. Change directory to pyfits-2.1.1
  6. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python /2.6.5/gcc34/bin/python setup.py install
  7. Leave and erase pyfits-2.1.1

matplotlib 0.99

  1. if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract matplotlibnumpy-01.994.10.tar.gz
  4. Change directory to matplotlibnumpy-0.99.1
  5. setenv DISPLAY localhost:0.0
  6. xhost +
  7. Edit setup.cfg set wxagg = False, macosx = False.4.0
  8. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install
  9. Leave and erase the current directory (numpy-1.4.0)

PyFITS - 2.1.1

  1. Download pyfits-2.1.1.tar.gz from http://www.stsci.edu/resources/software_hardware/pyfits/pyfits-2.1.6.5/gcc34/bin/python setup.py buildExecute 1.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python /2.6.5/gcc34/bin/python setup.py install
  2. Leave and erase matplotlib-0.99.1/

...

  1. if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract pywcspyfits-2.1.7-4.4.41.tar.gz
  4. Change directory to pywcspyfits-2.1.7-4.4.41
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install
  6. Leave and erase pywcspyfits-2.1.7-4.4.4

APLpy-0.9.4

  1. .1

matplotlib 0.99

  1. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  2. Extract matplotlib-0.99.1.tar.gz
  3. Change directory to matplotlib-0.99.1/ 
  4. setenv DISPLAY localhost:0.0
  5. xhost +
  6. Edit setup.cfg set wxagg = False, macosx = False
  7. Execute Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  8. Extract APLpy-0.9.4.tar.gz
  9. Change directory to APLpy-0.9.4/2.6.5/gcc34/bin/python setup.py build
  10. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install
  11. Leave and erase APLpymatplotlib-0.999.41/

...

pywcs-1.

...

7-4.4.4

  1. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  2. Extract pywcs-1.7-4.4.4.tar.gz
  3. Change directory to pywcs-1.7-4.4.4
  4. Execute 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.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/python if it doesn't already exist.bin/python setup.py install
  5. Leave and erase pywcs-1.7-4.4.4

APLpy-0.9.4

  1. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/pythonExtract 4Suite-XML-1.0.2python
  2. Extract APLpy-0.9.4.tar.gz
  3. Change directory to 4SuiteAPLpy-XML-10.09.24
  4. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34Leave and erase 4Suite-
  5. Leave and erase APLpy-0.9.4

4Suite XML - 1.0.2

...

  1. Download ipython4Suite-XML-1.0.102.tar.gz from http://ipythondownloads.scipysourceforge.orgnet/sourceforge/distfoursuite/ipython4Suite-XML-1.0.102.tar.gz?use_mirror=voxel and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/pythonExtract 4Suite-XML-1.0.2.tar.gz
  3. Change directory to 4Suite-XML-1.0.2
  4. Execute to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  5. Extract ipython-0.10.tar.gz
  6. Change directory to ipython-0.10
  7. Execute /2.6.5/gcc34/bin/python setup.py install --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install
  8. Leave and erase ipython4Suite-XML-1.0.102

...

iPython - 0.

...

10

  1. Download ipython-0.10.tar.gz from http://wwwipython.scipy.org/dist/ipython-0.10.tar.gz and save to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
  3. Extract scipyipython-0.710.2.tar.gz
  4. Change directory to scipyipython-0.7.210
  5. Execute /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.6.5/gcc34/bin/python setup.py install
  6. Leave and erase scipyipython-0.7.210