From 9bfb9c35114f6d82a153d025beef994ff7d54efc Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 23 Dec 2009 18:29:46 +0100 Subject: [PATCH] Add instructions for installing despotify and spytify --- README.rst | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/README.rst b/README.rst index ff76d40f..ba11856f 100644 --- a/README.rst +++ b/README.rst @@ -37,3 +37,48 @@ Resources - `Spotify's official metadata API `_ - `pyspotify `_, Python bindings for the official Spotify library, libspotify + + +Installing despotify and spytify +-------------------------------- + +Check out the despotify source code:: + + svn co https://despotify.svn.sourceforge.net/svnroot/despotify@363 despotify + +As spytify does not seem up to date with the latest revision of despotify we +explicitly fetch revision 363, which was when spytify was last changed. + +Install despotify's dependencies. At Debian/Ubuntu systems:: + + sudo aptitude install libssl-dev zlib1g-dev libvorbis-dev \ + libtool libncursesw5-dev libpulse-dev \ + libgstreamer-plugins-base0.10-0 libgstreamer0.10-dev \ + libao-dev + +Build and install despotify:: + + cd despotify/src/ + make + sudo make install + +Install spytify's dependencies. At Debian/Ubuntu systems:: + + sudo aptitude install python-pyrex + +Build and install spytify:: + + cd despotify/src/bindings/python/ + python setup.py build + sudo python setup.py install + +To validate that everything is working, run the ``test.py`` script which is +distributed with spytify:: + + python test.py + +The test script should ask for your username and password (which must be for a +Spotify Premium account), ask for a search query, list all your playlists with +tracks, play 10s from a random song from the search result, pause for two +seconds, play for five more seconds, and quit. +