diff --git a/contrib/install-pysolfc.sh b/contrib/install-pysolfc.sh index 1d2e13f7..f483b279 100755 --- a/contrib/install-pysolfc.sh +++ b/contrib/install-pysolfc.sh @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash set -Cefu : ${PKGTREE:=/usr/local/packages/PySolFC} -PIP="$(printf '%s/env/bin/pip install --no-binary :all: ' "$PKGTREE")" +PIP=("${PKGTREE}/env/bin/pip" install --no-binary :all:) 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")" @@ -11,6 +11,6 @@ reqs='six random2 pillow' make dist for req in $reqs do - "$PIP" "$req" + "${PIP[@]}" "$req" done -"$PIP" --upgrade "$XZBALL" +"${PIP[@]}" --upgrade "$XZBALL"