setup.sh 1000B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # pip install psycopg2
  46. # pip install pillow
  47. cd ${OLD_PATH}