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.

29 lines
572 B

  1. #/bin/bash
  2. set -e
  3. BINDIR="/usr/local/bin"
  4. cd $BINDIR
  5. if [[ -e $BINDIR/.bootstrapped ]]; then
  6. exit 0
  7. fi
  8. PYPY_VERSION=2.4.0
  9. wget -O - https://bitbucket.org/pypy/pypy/downloads/pypy-$PYPY_VERSION-linux64.tar.bz2 |tar -xjf -
  10. mv -n pypy-$PYPY_VERSION-linux64 pypy
  11. ## library fixup
  12. mkdir -p pypy/lib
  13. ln -snf /lib64/libncurses.so.5.9 $BINDIR/pypy/lib/libtinfo.so.5
  14. cat > $BINDIR/python <<EOF
  15. #!/bin/bash
  16. LD_LIBRARY_PATH=$BINDIR/pypy/lib:$LD_LIBRARY_PATH exec $BINDIR/pypy/bin/pypy "\$@"
  17. EOF
  18. chmod +x $BINDIR/python
  19. $BINDIR/python --version
  20. touch $BINDIR/.bootstrapped