2017-11-13 09:34:21 +00:00
|
|
|
#!/bin/bash
|
2015-12-30 21:15:18 +00:00
|
|
|
set -e
|
|
|
|
|
2016-02-19 17:48:53 +00:00
|
|
|
BINDIR="/opt/bin"
|
2015-12-30 21:15:18 +00:00
|
|
|
|
2016-05-13 09:48:13 +00:00
|
|
|
mkdir -p $BINDIR
|
|
|
|
|
2015-12-30 21:15:18 +00:00
|
|
|
cd $BINDIR
|
|
|
|
|
|
|
|
if [[ -e $BINDIR/.bootstrapped ]]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2020-03-14 13:32:35 +00:00
|
|
|
PYPY_VERSION=7.2.0
|
2015-12-30 21:15:18 +00:00
|
|
|
|
2020-03-14 13:32:35 +00:00
|
|
|
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 -
|
|
|
|
mv -n pypy3.6-$PYPY_VERSION-linux_x86_64-portable pypy3
|
2015-12-30 21:15:18 +00:00
|
|
|
|
2019-01-12 14:04:33 +00:00
|
|
|
ln -s ./pypy3/bin/pypy3 python
|
2015-12-30 21:15:18 +00:00
|
|
|
$BINDIR/python --version
|
|
|
|
|
|
|
|
touch $BINDIR/.bootstrapped
|