appdwarf/apps/mkpypy

15 lines
365 B
Bash
Executable file

#!/bin/sh
APP=${0#./mk}
DIR=/tmp/appdwarf/$APP
mkdir -p "$DIR"
LINK="https://buildbot.pypy.org/nightly/py3.9/pypy-c-jit-latest-linux64.tar.bz2"
curl -L "$LINK" | tar xj -C"$DIR"
ln -s bin/pypy "$DIR"/AppRun
mv "$DIR"/pypy*/* "$DIR"
rm "$DIR"/bin/*.debug
"$DIR"/AppRun -m ensurepip
"$DIR"/AppRun -m pip install pipx
appdwarf "$DIR"
mv "$DIR".sh "$APP"
rm -rf "$DIR"