apostrophe/flatpak/pip-download

25 lines
276 B
Bash

#!/bin/sh
for i in "$@"
do
case $i in
--module=*)
MODULENAME="${i#*=}"
shift
;;
*)
ARGS="$ARGS $i"
shift
;;
esac
done
cat <<EOF > Makefile
all:
echo "Nothing"
install:
CXX=/usr/bin/g++ CC=/usr/bin/gcc PYTHONUSERBASE=/app/ pip3 install --user $MODULENAME
EOF