Versions Compared

Key

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

...

  1. pip install pyfits  (3.3)
  2. pip install pywcs (1.12)
  3. pip install APLpy (0.9.14)
  4. 4Suite-XML 1.0.2, using the tarball available and then run: python setup.py install
  5. pywcsgrid2-0.1b2 tarball should be within  our GLAST_EXT area
    extract

    cd

    python setup.py install

  6. pip install healpy (1.8.4)

 

2.7.6-gl1

redhat6-x86_64bit-gcc44

  1. Obtain python source from python.org
  2. Ungzip/Untar source
  3. Change directory to Python-2.7.6
  4. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  5. Change directory to Python-2.7.2
  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')

  7. setenv LDFLAGS -fPIC; setenv CPPFLAGS -fPIC; setenv CFLAGS  -m64 -fPIC need to force 64 bit build even on rhel6-64
  8. Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat5-i386-32bit-gcc41/python/2.7.6
  9. Execute make
  10. Execute make install
  11. 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

nose 1.3.2

unit test framework necessary for running numpy and scipy unit tests

  1. pip install nose

numpy 1.8.1

Still installing by hand to include --fcompiler flag to force correct fortran compiler to be used.  This is dictated by whatever blas and lapack are linked against.  For more information, see the numpy INSTALL.txt file.

  1. Download numpy-1.8.1.tar.gz 
  2. Extract numpy-1.8.1.tar.gz
  3. Change directory to numpy-1.8.1
  4. python setup.py build --fcompiler=gnu95  (for gfortran.)
    It seems the rhel4s have blas and lapack linked against g77, while rhel5 & rhel6 use gfortran
  5. python setup.py install
  6. Run the test routine by starting up python and doing:
    import numpy
    numpy.test()
  7. Leave and erase the current directory (numpy-1.8.1)

PyFITS - 3.2.2

pip install pyfits

matplotlib 1.3.1

pip install matplotlib

which also installed tornado, python-dateutil, pyparsing, six, and backport.ssl-match-hostname

pywcs-1.12

pip install pywcs

astropy-0.3.1

pip install astropy

APLpy-0.9.11 (requires astropy)

pip install APLpy

4Suite XML - 1.0.2

The 4Suite-XML web site no longer works via easy_install.  Installing by hand
python setup.py install

SciPy - 0.14.0

Continuing to install by hand to provide compiler flag to force correct fortran compiler, depending on what blas and lapack are linked against (try ldd /usr/lib/libblas.so). See SciPy's INSTALL.txt file for more information.

Download scipy-0.14.1.tar.gz from http://www.scipy.org/
Extract scipy-0.14.0.tar.gz
Change directory to scipy-0.14.0
Execute python setup.py config_fc --fcompiler=gnu95 install 
Leave and erase scipy-0.14.0
Test by starting up python and doing:
import scipy
scipy.test()  (NOTE this segfaulted on rhel5-32.. hoping that's not a big deal)

pywcsgrid2-0.1b2

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

 

PyYAML 3.11

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

python setup.py install

healpy 1.7.4

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

How to use: http://docs.python-guide.org/en/latest/dev/virtualenvs/

Pmw 1.3.3

Home page: http://pmw.sourceforge.net/ 

Note Pmw 2.0.0 is for Python 3.0 while the 1.3 series is meant for Python 2.x. The Pmw-2.0.0 tarball includes both versions and during the installation chooses the correct one to install based on the version of python.

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.

to support HTML notebooks:

pyzmq 

zeromq
download from  http://zeromq.org/area:download
./configure --prefix=location
make
make install 

pip install pyzmq --install-option="--zmq=$GLAST_EXT/zeromq/4.0.4"

Jinga2: http://jinja.pocoo.org/docs/intro/#installation

 pip install Jinja2

 

2.7.6-gl1

redhat6-x86_64bit-gcc44

  1. Obtain python source from python.org
  2. Ungzip/Untar source
  3. Change directory to Python-2.7.6
  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/redhat5-i386-32bit-gcc41/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

nose 1.3.2

unit test framework necessary for running numpy and scipy unit tests

  1. pip install nose

numpy 1.8.1

Still installing by hand to include --fcompiler flag to force correct fortran compiler to be used.  This is dictated by whatever blas and lapack are linked against.  For more information, see the numpy INSTALL.txt file.

  1. Download numpy-1.8.1.tar.gz 
  2. Extract numpy-1.8.1.tar.gz
  3. Change directory to numpy-1.8.1
  4. python setup.py build --fcompiler=gnu95  (for gfortran.)
    It seems the rhel4s have blas and lapack linked against g77, while rhel5 & rhel6 use gfortran
  5. python setup.py install
  6. Run the test routine by starting up python and doing:
    import numpy
    numpy.test()
  7. Leave and erase the current directory (numpy-1.8.1)

PyFITS - 3.2.2

pip install pyfits

matplotlib 1.3.1

pip install matplotlib

which also installed tornado, python-dateutil, pyparsing, six, and backport.ssl-match-hostname

pywcs-1.12

pip install pywcs

astropy-0.3.1

pip install astropy

APLpy-0.9.11 (requires astropy)

pip install APLpy

4Suite XML - 1.0.2

The 4Suite-XML web site no longer works via easy_install.  Installing by hand
python setup.py install

SciPy - 0.14.0

Continuing to install by hand to provide compiler flag to force correct fortran compiler, depending on what blas and lapack are linked against (try ldd /usr/lib/libblas.so). See SciPy's INSTALL.txt file for more information.

Download scipy-0.14.1.tar.gz from http://www.scipy.org/
Extract scipy-0.14.0.tar.gz
Change directory to scipy-0.14.0
Execute python setup.py config_fc --fcompiler=gnu95 install 
Leave and erase scipy-0.14.0
Test by starting up python and doing:
import scipy
scipy.test()  (NOTE this segfaulted on rhel5-32.. hoping that's not a big deal)

pywcsgrid2-0.1b2

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

 

PyYAML 3.11

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

python setup.py install

healpy 1.7.4

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

pip install healpy 

virtualenv-1.11.5

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

...

How to use: http://docs.python-guide.org/en/latest/dev/virtualenvs/

Pmw 1.3.3

Home page: http://pmw.sourceforge.net/ 

...

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.

...

  1. Obtain python source from python.org
  2. Ungzip/Untar source
  3. Change directory to Python-2.7.6
  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/redhat5-i386-32bit-gcc41/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

nose 1.3.2

unit test framework necessary for running numpy and scipy unit tests

  1. pip install nose

numpy 1.8.1

Still installing by hand to include --fcompiler flag to force correct fortran compiler to be used.  This is dictated by whatever blas and lapack are linked against.  For more information, see the numpy INSTALL.txt file.

  1. Download numpy-1.8.1.tar.gz 
  2. Extract numpy-1.8.1.tar.gz
  3. Change directory to numpy-1.8.1
  4. python setup.py build --fcompiler=gnu95  (for gfortran.)
    It seems the rhel4s have blas and lapack linked against g77, while rhel5 & rhel6 use gfortran
  5. python setup.py install
  6. Run the test routine by starting up python and doing:
    import numpy
    numpy.test()
  7. Leave and erase the current directory (numpy-1.8.1)

PyFITS - 3.2.2

pip install pyfits

matplotlib 1.3.1

pip install matplotlib

which also installed tornado, python-dateutil, pyparsing, six, and backport.ssl-match-hostname

pywcs-1.12

pip install pywcs

astropy-0.3.1

pip install astropy

APLpy-0.9.11 (requires astropy)

pip install APLpy

4Suite XML - 1.0.2

The 4Suite-XML web site no longer works via easy_install.  Installing by hand
python setup.py install

SciPy - 0.14.0

Continuing to install by hand to provide compiler flag to force correct fortran compiler, depending on what blas and lapack are linked against (try ldd /usr/lib/libblas.so). See SciPy's INSTALL.txt file for more information.

Download scipy-0.14.1.tar.gz from http://www.scipy.org/
Extract scipy-0.14.0.tar.gz
Change directory to scipy-0.14.0
Execute python setup.py config_fc --fcompiler=gnu95 install 
Leave and erase scipy-0.14.0
Test by starting up python and doing:
import scipy
scipy.test()  (NOTE this segfaulted on rhel5-32.. hoping that's not a big deal)

pywcsgrid2-0.1b2

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

 

PyYAML 3.11

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

python setup.py install

healpy 1.7.4

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

pip install healpy 

virtualenv-1.11.5

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

...

How to use: http://docs.python-guide.org/en/latest/dev/virtualenvs/

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.

...

APLpy-0.9.8

pip install APLpy

4Suite XML - 1.0.2

The 4Suite-XML web site no longer works via easy_install.  Installing by hand
python setup.py install

...

APLpy-0.9.8

pip install APLpy

4Suite XML - 1.0.2

The 4Suite-XML web site no longer works via easy_install.  Installing by hand
python setup.py install

...

APLpy-0.9.8

pip install APLpy

4Suite XML - 1.0.2

The 4Suite-XML web site no longer works via easy_install.  Installing by hand
python setup.py install

...

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. 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.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
  3. Extract pyfits-1.3.tar.gz
  4. Change directory to pyfits-1.3
  5. Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl3/gcc40/bin/python setup.py install
  6. Leave and erase pyfits-1.3

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/python/ if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
  3. Extract 4Suite-XML-1.0.2.tar.gz
  4. Change directory to 4Suite-XML-1.0.2
  5. 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
  6. Leave and erase 4Suite-XML-1.0.2

...

  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/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 pyfits-2.1.1.tar.gz
  4. Change directory to pyfits-2.1.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. 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/ 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. Change directory to 4Suite-XML-1.0.2
  5. Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl4/gcc40/bin/python setup.py install --prefix /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl4/gcc40
  6. Leave and erase 4Suite-XML-1.0.2

...

  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

...

  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.6.5/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.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
  5. Leave and erase 4Suite-XML-1.0.2

...