Virtualenv installation:
-run ./vinstall.sh to generate the pyton virtualenv and install requirements.
-It should also write a vlaunch sh wrapper to run sima whithin the virtualenv.
+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
+
+It should also write a vlaunch sh wrapper to run sima within the virtualenv.
./vlaunch --help
# type: string (file path)
# description: file to log to. Usually used in daemon mode.
# default: logging to stdin/stdout
-logfile =
+#logfile =
##
## VERBOSITY
[lastfm]
-depth = 3
+depth = 1
## QUEUE_MODE # NOT COMPLETED #
# type: string
]
setup(name='sima',
- version='0.11.dev',
+ version='0.12.0.dev',
download_url='http://codingteam.net/project/sima/download',
url='http://codingteam.net/project/sima',
description='Automagically add titles to MPD playlist',
long_description=DESCRIPTION,
classifiers=classifiers,
install_requires=['distribute', 'python-musicpd'],
- packages=['sima','sima.lib', 'sima.utils', 'sima.plugins'],
+ packages=['sima','sima.lib', 'sima.utils', 'sima.plugins', 'sima.plugins.contrib'],
include_package_data=True,
data_files=data_files,
scripts=['launch'],
entry_points={
- 'console_scripts': ['sima = launch:main',]
+ 'console_scripts': ['sima = launch:run',]
},
)
#!/bin/sh
#
-# SCRIPT NAME
+# vinstall.sh
#
-# version: 0.0 : Date: 1970/01/01 00:0:00
+# version: 0.2 : Date: 2013/11/13
#
# TODO:
# *
PY3=${PY3:-$(which python3.3)}
-MUSICPD="http://media.kaliko.me/src/musicpd/dist/python-musicpd-0.3.1.tar.bz2"
# Test virtualenv presence
[ -x "$(which virtualenv)" ] || { echo "Cannot find virtualenv executable!"; exit 1; }
PIP_OPTIONS=""
[ "$DEBUG" = "0" ] && PIP_OPTIONS="$PIP_OPTIONS --quiet"
-pip $PIP_OPTIONS install $MUSICPD
+pip $PIP_OPTIONS install --pre python-musicpd || exit 1
deactivate
cat << EOF > $SIMA_VLAUNCHER
#!/bin/sh
. $INSTALL_DIR/venv/bin/activate
-python $SIMA_LAUNCHER $@
+python $SIMA_LAUNCHER "\$@"
EOF
chmod +x $SIMA_VLAUNCHER