2017-11-13 17:34:21 +08:00
|
|
|
#!/bin/bash
|
2015-12-31 05:15:18 +08:00
|
|
|
set -e
|
|
|
|
|
2016-02-20 01:48:53 +08:00
|
|
|
BINDIR="/opt/bin"
|
2015-12-31 05:15:18 +08:00
|
|
|
|
2016-05-13 17:48:13 +08:00
|
|
|
mkdir -p $BINDIR
|
|
|
|
|
2015-12-31 05:15:18 +08:00
|
|
|
cd $BINDIR
|
|
|
|
|
|
|
|
if [[ -e $BINDIR/.bootstrapped ]]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2019-01-12 22:04:33 +08:00
|
|
|
PYPY_VERSION=6.0.0
|
2015-12-31 05:15:18 +08:00
|
|
|
|
2019-01-12 22:04:33 +08:00
|
|
|
wget -O - https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.5-$PYPY_VERSION-linux_x86_64-portable.tar.bz2 | tar -xjf -
|
|
|
|
mv -n pypy3.5-$PYPY_VERSION-linux_x86_64-portable pypy3
|
2015-12-31 05:15:18 +08:00
|
|
|
|
2019-01-12 22:04:33 +08:00
|
|
|
ln -s ./pypy3/bin/pypy3 python
|
2015-12-31 05:15:18 +08:00
|
|
|
$BINDIR/python --version
|
|
|
|
|
|
|
|
touch $BINDIR/.bootstrapped
|