Installing NIPY for development on Debian

Note: these instructions are based on the ubuntu install DevelopmentInstallUbuntu. They have to be checked.

Install scipy and numpy

sudo aptitude install python-numpy python-numpy-dev python-scipy

For matplotlib/pylab, it must be built from a particular release that is slightly newer than gutsy's version

svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/tags/v0_91_2 matplotlib_0_91_2

and apply this small patch.

cd matplotlib_0_91_2
wget http://neuroimaging.scipy.org/neuroimaging/ni/attachment/wiki/DevelopmentInstallUbuntu/scroll_wx_mpl.patch
patch -p0 < scroll_wx_mpl.patch
python setup.py build

Be sure to put this version of matplotlib ahead of the built-in version of pylab. For instance, in bash using python2.5

python setup.py install --prefix=$HOME/python
export PYTHONPATH=$HOME/python/lib/python2.5/site-packages:$PYTHONPATH

Get the nipy code and build it in place (or install it locally if you prefer)

svn co http://neuroimaging.scipy.org/svn/ni/ni/branches/new-image nipy
cd nipy
python setup.py build_ext --inplace