#!/bin/csh
# Setup ccp4i2 development environment
setenv CCP4I2_TOP /home/lizp/test_download/ccp4i2
setenv PYTHONSTARTUP ${CCP4I2_TOP}/bin/ccp4i2.pythonrc
setenv CCP4I2_TEST $HOME/CCP4I2_TEST

#MacOSX
if ( x`uname` == x"Darwin") then
  setenv PYTHONHOME ${CCP4I2_TOP}/Frameworks/Python.framework/Versions/2.7
  setenv DYLD_FRAMEWORK_PATH ${CCP4I2_TOP}/Frameworks
  if ($?LD_LIBRARY_PATH) then
    setenv LD_LIBRARY_PATH ${CCP4I2_TOP}/lib:${LD_LIBRARY_PATH}
  else
    setenv LD_LIBRARY_PATH ${CCP4I2_TOP}/lib
  endif
  if ($?DYLD_FALLBACK_LIBRARY_PATH) then
    setenv DYLD_FALLBACK_LIBRARY_PATH ${CCP4I2_TOP}/lib:${DYLD_FALLBACK_LIBRARY_PATH}
  else
    setenv DYLD_FALLBACK_LIBRARY_PATH ${CCP4I2_TOP}/lib
  endif
  alias ccp4py ${CCP4I2_TOP}/bin/Python 
endif
#Linux
if ( x`uname` == x"Linux") then
  setenv PYTHONHOME ${CCP4I2_TOP}/pythondist
  if ($?LD_LIBRARY_PATH) then
    setenv LD_LIBRARY_PATH ${CCP4I2_TOP}/lib:${LD_LIBRARY_PATH}
  else
    setenv LD_LIBRARY_PATH ${CCP4I2_TOP}/lib
  endif
  alias ccp4py ${CCP4I2_TOP}/pythondist/bin/python
endif

setenv PYTHONPATH ${PYTHONHOME}/lib/python2.7/site-packages
set path=(${PYTHONHOME}/bin ${CCP4I2_TOP}/bin $path)
setenv svnroot http://ccpforge.cse.rl.ac.uk/svn/ccp4i2
setenv SVN_EDITOR vi
alias cdi2 cd  ${CCP4I2_TOP}
