1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/contrib/install-pysolfc.sh

15 lines
447 B
Bash
Executable file

#! /bin/sh -Cefu
: ${PKGTREE:=/usr/local/packages/PySolFC}
PIP="$(printf '%s/env/bin/pip install --no-binary :all: ' "$PKGTREE")"
PYPROG="$(printf '%s/env/bin/python' "$PKGTREE")"
VERSION="$(env PYTHONPATH=`pwd` "$PYPROG" -c 'from pysollib.settings import VERSION ; print(VERSION)')"
XZBALL="$(printf 'dist/PySolFC-%s.tar.xz' "$VERSION")"
reqs='six random2 pillow'
make dist
for req in $reqs
do
"$PIP" "$req"
done
"$PIP" --upgrade "$XZBALL"