22 lines
413 B
Bash
Executable file
22 lines
413 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
BINDIR="/opt/bin"
|
|
|
|
mkdir -p $BINDIR
|
|
|
|
cd $BINDIR
|
|
|
|
if [[ -e $BINDIR/.bootstrapped ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
PYPY_VERSION=7.0.0
|
|
|
|
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
|
|
|
|
ln -s ./pypy3/bin/pypy3 python
|
|
$BINDIR/python --version
|
|
|
|
touch $BINDIR/.bootstrapped
|