It's simple ! But hey, I haven't post for months...
Grab the sources' last version (0.83.1 at the moment) from the freedesktop site :
$ wget http://dbus.freedesktop.org/releases/dbus-python/dbus-python-0.83.1.tar.gz
Then extract the archive and cd into the extracted folder :
$ tar -xvzf dbus-python-0.83.1.tar.gz $ cd dbus-python-0.83.1/
Run the configure script with the prefix option set to virtualenv folder, e.g for my testenv virtual environment it would be /home/myself/.virtualenvs/testenv :
$ ./configure --prefix /path/to/your/virtualenv
Finally, compile&install with the classic combo make; make install :
$ make $ make install
You can test if the installation was successful but I have no doubts !
$ python >>> import dbus >>> dbus.__version__ '0.83.1'
However, if you get the following, something didn't happen properly...
>>> import dbus Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named dbus
Note that due to the use of a virtual environment it's not necessary to run make install as a privileged user.
Resources :
- Tutorial : http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html
- API reference : http://dbus.freedesktop.org/doc/dbus-python/api/
The end.