You might want to make sure you have all the dependencies installed. I see they call for python-devel which in ubuntu does not exist but python-all-dev does which says it provides all python development sources for your system. I see that none of the python dev packages are installed in my bt5 by default so I thought I would throw that out there.
Heres the pyrit installation wiki page with more info on compiling it.
http://code.google.com/p/pyrit/wiki/Installation
Good Luck



