install_dependencies.sh 887 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. privilege_escalation="sudo "
  3. install_cmd="$privilege_escalation apt install "
  4. update_cmd="$privilege_escalation apt update ; "
  5. pip_cmd="$privilege_escalation pip install "
  6. user_developer="user"
  7. # uncomment below if you are a developer
  8. user_developer="developer"
  9. cmd=""
  10. if [ "$user_developer" == "user" ] ; then
  11. cmd="$update_cmd $install_cmd gcc python3 swig "
  12. eval "$cmd"
  13. cmd="$pip_cmd pillow numpy soundfile mutagen zlib-wrapper Cython"
  14. eval "$cmd"
  15. elif [ "$user_developer" == "developer" ] ; then
  16. cmd="$update_cmd $install_cmd indent valgrind clang cppcheck gcc swig python3 "
  17. eval "$cmd"
  18. cmd="$pip_cmd pillow numpy soundfile mutagen zlib-wrapper Cython"
  19. eval "$cmd"
  20. cmd="$install_cmd texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-font-utils texlive-fonts-extra pandoc fonts-noto"
  21. eval "$cmd"
  22. fi