appdwarf/apps/mkpypy

18 lines
379 B
Plaintext
Raw Normal View History

#!/bin/sh
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
2022-06-27 00:53:01 +00:00
DIR=/tmp/appdwarf/pypy
mkdir -p $DIR
LINK="https://buildbot.pypy.org/nightly/py3.9/pypy-c-jit-latest-linux64.tar.bz2"
2022-06-27 00:53:01 +00:00
curl -L "$LINK" | tar xj -C$DIR
2022-06-27 00:53:01 +00:00
mv $DIR/pypy*/* $DIR
rm $DIR/bin/*.debug
ln -s bin/pypy $DIR/AppRun
2022-06-27 00:53:01 +00:00
$DIR/AppRun -m ensurepip
$DIR/AppRun -m pip install pipx
2022-06-27 00:53:01 +00:00
appdwarf $DIR
mv $DIR.sh pypy
rm -rf $DIR