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"
|
2020-10-09 08:35:06 +00:00
|
|
|
PYPY_VERSION=7.3.2
|
2020-08-21 07:09:47 +00:00
|
|
|
PYPI_URL="https://downloads.python.org/pypy/pypy3.6-v${PYPY_VERSION}-linux64.tar.bz2"
|
2020-11-11 17:20:27 +00:00
|
|
|
PYPI_HASH=d7a91f179076aaa28115ffc0a81e46c6a787785b2bc995c926fe3b02f0e9ad83
|
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-05-06 11:49:08 +00:00
|
|
|
TAR_FILE=pyp.tar.bz2
|
|
|
|
wget -O "${TAR_FILE}" "${PYPI_URL}"
|
|
|
|
echo "${PYPI_HASH} ${TAR_FILE}" | sha256sum -c -
|
|
|
|
tar -xjf "${TAR_FILE}" && rm "${TAR_FILE}"
|
|
|
|
mv -n "pypy3.6-v${PYPY_VERSION}-linux64" 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
|