...
- pip install pyfits (3.3)
- pip install pywcs (1.12)
- pip install APLpy (0.9.14)
- 4Suite-XML 1.0.2, using the tarball available and then run: python setup.py install
pywcsgrid2-0.1b2 tarball should be within our GLAST_EXT area
extractcd
python setup.py install
- pip install healpy (1.8.4)
2.7.6-gl1
redhat6-x86_64bit-gcc44
- Obtain python source from python.org
- Ungzip/Untar source
- Change directory to Python-2.7.6
- Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
- Change directory to Python-2.7.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') - setenv LDFLAGS -fPIC; setenv CPPFLAGS -fPIC; setenv CFLAGS -m64 -fPIC need to force 64 bit build even on rhel6-64
- Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat5-i386-32bit-gcc41/python/2.7.6
- Execute make
- Execute make install
- Leave and erase the current directory (Python-2.7.6)
pip (also installs setuptools)
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
nose 1.3.2
unit test framework necessary for running numpy and scipy unit tests
- 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.
- Download numpy-1.8.1.tar.gz
- Extract numpy-1.8.1.tar.gz
- Change directory to numpy-1.8.1
- python setup.py build --fcompiler=gnu95 (for gfortran.)
It seems the rhel4s have blas and lapack linked against g77, while rhel5 & rhel6 use gfortran - python setup.py install
- Run the test routine by starting up python and doing:
import numpy
numpy.test() - 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.
- Download the source code from: http://sourceforge.net/projects/pmw/files/
- Unpack the tarball
- python install setup.py
- Test by running: python All.py in the site-packages/Pmw/Pmw_1_3_3/tests directory
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
- Obtain python source from python.org
- Ungzip/Untar source
- Change directory to Python-2.7.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')- Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat5-i386-32bit-gcc41/python/2.7.6
- Execute make
- Execute make install
- Leave and erase the current directory (Python-2.7.6)
pip (also installs setuptools)
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
nose 1.3.2
unit test framework necessary for running numpy and scipy unit tests
- 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.
- Download numpy-1.8.1.tar.gz
- Extract numpy-1.8.1.tar.gz
- Change directory to numpy-1.8.1
- python setup.py build --fcompiler=gnu95 (for gfortran.)
It seems the rhel4s have blas and lapack linked against g77, while rhel5 & rhel6 use gfortran - python setup.py install
- Run the test routine by starting up python and doing:
import numpy
numpy.test() - 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/
...
- Download the source code from: http://sourceforge.net/projects/pmw/files/
- Unpack the tarball
- python install setup.py
- Test by running: python All.py in the site-packages/Pmw/Pmw_1_3_3/tests directory
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.
...
- Obtain python source from python.org
- Ungzip/Untar source
- Change directory to Python-2.7.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')- Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat5-i386-32bit-gcc41/python/2.7.6
- Execute make
- Execute make install
- Leave and erase the current directory (Python-2.7.6)
pip (also installs setuptools)
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
nose 1.3.2
unit test framework necessary for running numpy and scipy unit tests
- 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.
- Download numpy-1.8.1.tar.gz
- Extract numpy-1.8.1.tar.gz
- Change directory to numpy-1.8.1
- python setup.py build --fcompiler=gnu95 (for gfortran.)
It seems the rhel4s have blas and lapack linked against g77, while rhel5 & rhel6 use gfortran - python setup.py install
- Run the test routine by starting up python and doing:
import numpy
numpy.test() - 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
- pip install APLpy
4Suite XML - 1.0.2
This module was not recognized by pip. Using easy_install instead.
...
- 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
...
- 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.
- Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python
- Extract pyfits-2.1.1.tar.gz
- Change directory to pyfits-2.1.1
- Execute /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl4/gcc40/bin/python setup.py install
- Leave and erase pyfits-2.1.1
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-gcc40/python/ if it doesn't already exist.
- Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/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-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
- Leave and erase 4Suite-XML-1.0.2
...
- Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
- Extract APLpy-0.9.4.tar.gz
- Change directory to APLpy-0.9.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 APLpy-0.9.4
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.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
- Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/pythonExtract 4Suite-XML-1.0.2.tar.gz
- Change directory to 4Suite-XML-1.0.2
- 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
- Leave and erase 4Suite-XML-1.0.2
...
- Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python
- Extract APLpy-0.9.4.tar.gz
- Change directory to APLpy-0.9.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
- Leave and erase APLpy-0.9.4
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.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python if it doesn't already exist.
- Change directory to /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/pythonExtract 4Suite-XML-1.0.2.tar.gz
- Change directory to 4Suite-XML-1.0.2
- 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
- Leave and erase 4Suite-XML-1.0.2
...