setup.sh 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/bin/bash
  2. POD_BIN_PATH=`dirname $0`
  3. POD_INSTALL_PATH=`dirname ${POD_BIN_PATH}`
  4. POD_INSTALL_FULL_PATH=`realpath ${POD_INSTALL_PATH}`
  5. echo $POD_BIN_PATH
  6. echo $POD_INSTALL_PATH
  7. echo $POD_INSTALL_FULL_PATH
  8. OLD_PATH=`pwd`
  9. cd ${POD_INSTALL_FULL_PATH}
  10. # virtualenv tg2env
  11. echo
  12. echo "-------------------------"
  13. echo "- initializes virtualenv"
  14. echo "-------------------------"
  15. echo "-> path: tg2env/"
  16. echo "-> interpreter: python3"
  17. echo
  18. echo
  19. virtualenv -p /usr/bin/python3 tg2env
  20. echo
  21. echo
  22. echo "-------------------------"
  23. echo "- activates virtualenv"
  24. echo "-------------------------"
  25. source tg2env/bin/activate
  26. echo
  27. echo
  28. echo
  29. echo
  30. echo "-------------------------"
  31. echo "- installing turbogears"
  32. echo "-------------------------"
  33. pip install -f http://tg.gy/230 tg.devtools
  34. echo
  35. echo
  36. echo
  37. echo
  38. echo "-------------------------"
  39. echo "- setup project"
  40. echo "-------------------------"
  41. cd pboard/
  42. python setup.py develop
  43. echo
  44. echo
  45. echo
  46. echo
  47. echo "-------------------------"
  48. echo "- install dependencies"
  49. echo "-------------------------"
  50. echo "-> psycopg2"
  51. echo "-> pillow"
  52. pip install psycopg2
  53. pip install pillow
  54. echo
  55. echo
  56. cd ${OLD_PATH}