Error installing python module that uses pbr

If you get the following error when running python setup.py install:

error in setup command: Error parsing somemodule/setup.cfg: OSError: [Errno 2] No such file or directory

It is because git is not installed. On debian apt-get install git-core and you should be all set.