X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=vinstall.sh;h=1afb3b8041ce930552dbb59d3811a6875396f89a;hb=325e87e6aaf33974ea8bc8e4b3d2fdbbef56e9a9;hp=143e8850a3383917fa4409d25682fb83ba99efd2;hpb=24a6e4cbea12edb878c93e525f35887b65c5bf8c;p=mpd-sima.git diff --git a/vinstall.sh b/vinstall.sh index 143e885..1afb3b8 100755 --- a/vinstall.sh +++ b/vinstall.sh @@ -35,23 +35,28 @@ virtualenv $VENV_OPTIONS $INSTALL_DIR/venv || { echo "something went wrong gener PIP_OPTIONS="" [ "$DEBUG" = "0" ] && PIP_OPTIONS="$PIP_OPTIONS --quiet" -pip $PIP_OPTIONS install --pre python-musicpd || exit 1 +pip install -e . || exit 1 -echo Installing mpd-siuma +echo Installing mpd-sima $(dirname $0)/setup.py --quiet install || exit 1 deactivate SIMA_LAUNCHER=mpd-sima -SIMA_VLAUNCHER=$(readlink -f $(dirname $0))/vmpd-sima +SIMA_VLAUNCHER=$INSTALL_DIR/vmpd-sima -cat << EOF > $SIMA_VLAUNCHER +cat << EOF > "$SIMA_VLAUNCHER" #!/bin/sh . $INSTALL_DIR/venv/bin/activate -$SIMA_LAUNCHER "\$@" +$INSTALL_DIR/$SIMA_LAUNCHER "\$@" EOF chmod +x $SIMA_VLAUNCHER +echo Cleaning up +rm -rf $(dirname $0)/dist +rm -rf $(dirname $0)/build +rm -rf $(dirname $0)/sima.egg-info + echo # vim: fileencoding=utf8