sudo aptitude update
sudo aptitude install build-essential python-dev automake libtool subversion pkg-config
sudo aptitude update
mkdir svn
cd svn
svn checkout http://py-leveldb.googlecode.com/svn/trunk/ py-leveldb-read-only
cd py-leveldb-read-only/snappy-read-only/
./autogen.sh
./configure
make
sudo make install
cd ../leveldb-read-only/
cd py-leveldb-read-only/leveldb-read-only
make
cd ..
./compile_leveldb.sh
sudo python setup.py install