Today I’ve been writing my first python script. I’m using passlib.hash, unfortunately ubuntu 12.04 comes with version 1.5.3 instead of version 1.6 so there is no support for MsSQL, LM, NTLM, Domain Cached etc…

I don’t like installing packages from source as it’s a bugger to roll back if something goes wrong, so I decided to look into creating a deb package of passlib 1.6.

It’s as simple as:

1
2
3
apt-get -y install python-stdeb
python setup.py --command-packages=stdeb.command bdist_deb
dpkg -i deb_dist/*.deb

For those that need passlib 1.6 in deb format you can download it from here (python-passlib_1.6-1_all.deb_

Oh, and if you’re just interested in installing 1.6 of passlib in the super quick way:

1
2
3
4
5
apt-get -y install python-setuptools
easy_install passlib
-----OR-----
apt-get -y install python-pip
pip install passlib

Leave a Reply