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.

22 lines
435 B

  1. #!/bin/bash
  2. set -e
  3. BINDIR="/opt/bin"
  4. mkdir -p $BINDIR
  5. cd $BINDIR
  6. if [[ -e $BINDIR/.bootstrapped ]]; then
  7. exit 0
  8. fi
  9. PYPY_VERSION=7.2.0
  10. wget -O - https://github.com/squeaky-pl/portable-pypy/releases/download/pypy3.6-7.2.0/pypy3.6-$PYPY_VERSION-linux_x86_64-portable.tar.bz2 | tar -xjf -
  11. mv -n pypy3.6-$PYPY_VERSION-linux_x86_64-portable pypy3
  12. ln -s ./pypy3/bin/pypy3 python
  13. $BINDIR/python --version
  14. touch $BINDIR/.bootstrapped