Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

2.7.2

Adding in the following modules:

distribute0.6.21
pip1.0.1
nose1.1.2
numpy 1.6.1
pyfits 3.0.3
matplotlib1.1.0
pywcs 1.10-4.7
APLpy 0.9.6
4Suite-XML 1.0.2
scipy 0.9.0
iPython 0.11
pywcsgrid2

redhat6-x86_64-64bit-gcc44

These instructions should be performed as the glastrm user or with appropriate privileges to write in the GLAST_EXT area.
Note that the scipy unit test will report failures due to missing symbols in the rhel4 blas installed at SLAC.  This is likely always been the case, and apparently cannot be fixed unless we're will to install BLAS and Lapack ourselves.

  1. Download Python 2.7.2 from http://www.python.org/ftp/python/2.7.12/Python-2.7.2.tgz and save to /afs/slac/g/glast/ground/GLAST_EXT/srcExtLibs if it doesn't already exist.
  2. Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat6-x86_64-64bit-gcc44/python
  3. Ungzip and Untar the file Python-2.7.2.tgz
  4. Change directory to Python-2.7.2
  5. 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')

      6. setenv LDFLAGS -fPIC; setenv CPPFLAGS -fPIC; setenv CFLAGS -fPIC

  1. Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat6-x86_64-64bit-gcc44/python/2.7.2/gcc34 -fPIC
  2. If ./include/TGGC.h file doesn't exists or is an empty file then "cp ./gui/gui/inc/TGGC.h to ./include"
  3. Execute make
  4. Execute make install
  5. Leave and erase the current directory (Python-2.7.2)
  6. install additional python modules the same way as python 2.7.1 instruction

2.7.1

Adding in the following modules:

...

  1. pip install ipython
  2. Run the iptest located in python's bin directory.

pywcsgrid2

  1. Download from https://github.com/leejjoon/pywcsgrid2/downloadsImage Removed
  2. Extract
  3. cd
  4. python setup.py install

...