setup.sh 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 "- install dependencies"
  40. echo "-------------------------"
  41. echo "-> psycopg2"
  42. echo "-> pillow"
  43. echo "-> beautifulsoup4"
  44. echo "-> tw.forms"
  45. echo "-> tgext.admin"
  46. pip install psycopg2
  47. pip install pillow
  48. pip install beautifulsoup4
  49. pip install tw.forms
  50. pip install tgext.admin
  51. echo
  52. echo
  53. echo
  54. echo
  55. echo "-------------------------"
  56. echo "- setup project"
  57. echo "-------------------------"
  58. cd pod/
  59. python setup.py develop
  60. echo
  61. echo
  62. cd ${OLD_PATH}