Installation in custom folderΒΆ

  1. One method is to use the –prefix option of setup.py. See Python documentation for more options
python setup.py install --prefix=/home/myhome/software
  1. You will now need to add the library location to your PYTHONPATH and the scripts location to your executables path e.g. in your ~/.cshrc file.
set path = ($HOME/software/bin/ $path)
if ($?PYTHONPATH) then
    setenv PYTHONPATH "${PYTHONPATH}:$HOME/software/lib64/python2.6/site-packages"
else
    setenv PYTHONPATH "$HOME/software/lib64/python2.6/site-packages"
endif