Virtualenv installation:
Run ./vinstall.sh to generate the python virtualenv and install requirements.
-You might specify a python3 interpreter if the binary name defers from python3.3 :
-
- PY3=/usr/bin/python ./vinstall.sh
+Default looks for python3 on the system.
+It will setup a virtualenv within a "venv" directory (same level as vinstall.sh file).
It should also write a shell wrapper to run mpd-sima within the virtualenv.
./vmpd-sima --help
+You might specify a python3 interpreter if the binary name differs from python3:
+
+ PY3=/usr/bin/python ./vinstall.sh
+
+You can locate the virtalenv somewhere else:
+ INSTALL_DIR=/tmp/crap_test/ ./vinstall.sh
pip $PIP_OPTIONS install --pre python-musicpd || 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 "\$@"
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