First of all, note that scipy requires python >= 2.4. SC4 comes with python version 2.3. So, a newer version of python needs to be installed first. For us, it was installed in /code/hep/bin.
Numpy can be installed for either python 2.3 or 2.5. For 2.3, use yum.
yum install numpy
For the 2.5 version, download the tar file, extract and run:
/code/hep/bin/python setup.py build --fcompiler=gnu /code/hep/bin/python setup.py install --prefix=/code/hep
This will put the libraries in /code/hep/lib/python2.5.
For scipy, download the file, extract and run:
export PYTHONPATH=/code/hep/lib/python2.5 /code/hep/bin/python setup.py install --prefix=/code/hep
Then, to use the 2.5 version instead of the 2.3 version, put in your .bashrc file:
export PATH=/code/hep/bin:$PATH export PYTHONPATH=/code/hep/lib/python2.5