David Reynolds

Welcome to boredom

Installing Python-crack on Mac OS X Lion in a Virtualenv

| Comments

Since:

  • I forgot how to do this last week
  • I need to do it reasonably regularly
  • I can’t find any other correct resources suggesting how to do this

.. I thought I’d record it here.

This assumes:

  • You are running Mac OS X (version probably doesn’t matter)
  • You are using Homebrew (and if you’re not, why aren’t you?)
  • You are using virtualenv

Do the following:

1
2
3
4
5
6
$ # Download and uncompress python-crack-0.5.1.tar
$ brew install cracklib cracklib-words
$ cd python-crack-0.5.1
$ DEFAULT_DICTPATH=/usr/local/share/cracklib-words ./configure --prefix=$VIRTUAL_ENV
$ make
$ make install

Done!

Comments