fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
860 B

  1. #!/bin/bash
  2. set -eux
  3. ## For shyaml
  4. case $(lsb_release -is) in
  5. Debian)
  6. case $(lsb_release -rs) in
  7. 11|12)
  8. apt-get install -y python3-pip libyaml-dev python3-dev </dev/null
  9. ;;
  10. *)
  11. apt-get install -y python-pip libyaml-dev python-dev </dev/null
  12. ;;
  13. esac
  14. ;;
  15. Ubuntu)
  16. case $(lsb_release -rs) in
  17. 22.04)
  18. apt-get install -y python3-pip libyaml-dev python3-dev </dev/null
  19. ;;
  20. *)
  21. apt-get install -y python-pip libyaml-dev python-dev </dev/null
  22. ;;
  23. esac
  24. ;;
  25. *)
  26. apt-get install -y python-pip libyaml-dev python-dev </dev/null
  27. ;;
  28. esac
  29. pip install shyaml --upgrade ||
  30. pip install shyaml --upgrade --break-system-packages