Versions Compared

Key

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

Table of Contents

2.7.6

redhat5-i686-32bit-gcc41

  1. Obtain python source from python.org
  2. Ungzip/Untar source
  3. Change directory to Python-2.7.26
  4. 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')

  5. Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat6redhat5-x86_64i386-64bit32bit-gcc44gcc41/python/2.7.6
  6. Execute make
  7. Execute make install
  8. Leave and erase the current directory (Python-2.7.6)

pip (also

...

installs setuptools)

  1. curl -O https://bootstrap.pypa.io/get-pip.py
  2. python get-pip.py

...

Download from https://github.com/leejjoon/pywcsgrid2/downloads
Extract
cd
python setup.py install

We do not distribute IPython any long due to ongoing issues with hard-coded paths associated with IPython.  Instead, we manually create the tar.gz file and copy it over to u35, then install IPython for use at SLAC in the GLAST_EXT copy. 

PyYAML 3.11

curl -O http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz

...

see:  https://pypi.python.org/pypi/healpy

pip install healpy 

virtualenv-1.11.5

https://virtualenv.pypa.io/en/latest/virtualenv.html#installation

pip install virtualenv healpy --user

iPython -

...

2.0.0

We do not distribute IPython any long due to ongoing issues with hard-coded paths associated with IPython.  Instead, we manually create the tar.gz file and copy it over to u35, then install IPython for use at SLAC in the GLAST_EXT copy.

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

...

curl -O http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz

python setup.py install

iPython - 0.13

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

...

curl -O http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz

python setup.py install

iPython - 0.13

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

...

curl -O http://sympy.googlecode.com/files/sympy-0.7.2.tar.gz
python setup.py install

iPython - 0.13

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

...

Unable to install numpy 1.5.1 successfully on rhel4-64, due to a known bug with 64 bit and gcc3.  The numpy unit test fails.  Fix is to move to gcc4, which we cannot do.  For now remaining on python 2.6.5.  In either case, the scipy unit tests results some errors which we seemingly have always been dealing with.  The bug report suggests doing a new install of BLAS, but according to unix-admins that is not possible.

redhat5-i686-32bit-gcc41

Same directions as redhat4-i686-32bit-gcc34.  The fortran compiler to use for numpy and scipy install is gfortran so --fcompiler=gnu95.  There should be no errors in the numpy or scipy unit tests.

...