PageRenderTime 37ms CodeModel.GetById 30ms RepoModel.GetById 2ms app.codeStats 0ms

/setup_paths.sh

https://bitbucket.org/ialbert/galaxy-genetrack
Shell | 46 lines | 25 code | 10 blank | 11 comment | 5 complexity | aeb1a6735a13d82c0fa16d8c113330be MD5 | raw file
  1. ## Set MACHTYPE to something,
  2. MACHTYPE=`uname -m`
  3. [ "$MACHTYPE" = "Power Macintosh" ] && MACHTYPE="powerpc"
  4. LC_ALL=POSIX
  5. export MACHTYPE LC_ALL
  6. KERNEL=`uname -s | tr "A-Z" "a-z"`
  7. ARCH="$KERNEL-$MACHTYPE"
  8. PLATFORMS=`$GALAXY_PYTHON ./scripts/get_platforms.py`
  9. UNIVERSE_HOME=`pwd`
  10. PYTHONPATH=$UNIVERSE_HOME/lib
  11. for PLATFORM in $PLATFORMS; do
  12. echo "Using eggs in $PLATFORM"
  13. PYTHONPATH=$PYTHONPATH:$UNIVERSE_HOME/eggs/$PLATFORM
  14. done
  15. # skip egg check for buildbot
  16. if [ "$USER" != "buildbot" ]; then
  17. $GALAXY_PYTHON ./scripts/check_eggs.py
  18. if [ $? -ne 0 ]; then
  19. exit 1
  20. fi
  21. fi
  22. export UNIVERSE_HOME PYTHONPATH
  23. ## For PBS - if you need to force node paths (i.e. the arch the frontend
  24. ## runs on is not the same arch as the compute nodes or Galaxy is
  25. ## installed in a different path on the node).
  26. #NODEMACH="i686"
  27. #NODEARCH="linux-i686"
  28. #NODEPATH=$PATH
  29. ## Certain tools (EMBOSS, PAML...) are not distributed with Galaxy.
  30. ## If you have them installed, add their bin directories to the PATH.
  31. PATH=$PATH:/depot/apps/$MACHTYPE/bin:/home/universe/$ARCH/EMBOSS-5.0.0/bin:/home/universe/$ARCH/ImageMagick/bin:/home/universe/$ARCH/PAML/paml3.15/bin
  32. ## NODEPATH defaults to $PATH
  33. : ${NODEPATH:=$PATH}
  34. export PATH NODEPATH
  35. echo "python path: $PYTHONPATH"
  36. echo "path: $PATH"