setup 576 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. # Minimum requirements to run ./build --download-dependencies
  3. set -ex
  4. if [ $# -eq 1 ]; then
  5. y=-y
  6. else
  7. y=
  8. fi
  9. if [ -f /.dockerenv ]; then
  10. sudo=
  11. export DEBIAN_FRONTEND=noninteractive
  12. else
  13. sudo=sudo
  14. fi
  15. $sudo apt-get update
  16. if [ -f /.dockerenv ]; then
  17. apt install -y software-properties-common
  18. add-apt-repository -y ppa:git-core/ppa
  19. $sudo apt update
  20. git=git=1:2.36.0-0ppa1~ubuntu20.04.1
  21. else
  22. git=git
  23. fi
  24. $sudo apt-get install $y \
  25. $git \
  26. python3 \
  27. python3-pip \
  28. python3-distutils \
  29. ;
  30. python3 -m pip install --user -r requirements.txt