Reference

Install

The newest Cython release can always be downloaded from http://cython.org.

mkdir -p /Users/chinoney/opt/pkgs/Cython-0.21.1/lib/python2.6/site-packages
PYTHONPATH=${PYTHONPATH}:/Users/chinoney/opt/pkgs/Cython-0.21.1/lib/python2.6/site-packages python setup.py install --prefix=~/opt/pkgs/Cython-0.21.1
cd opt
ln -sf pkgs/Cython-0.21.1/lib/python2.6/site-packages Cython

Add the library path to your PYTHONPATH,

export OPT=${HOME}/opt
export PYTHONPATH=${OPT}/Cython:${PYTHONPATH}