Automatically update setup.py version on every SVN commit
We are deploying Plone add-ons as development eggs with buildout. The eggs are pushed to the production as source code checkouts using Mr. Developer buildout recipe and .egg packaging is not done in any point.

What would be best way to automatically update setup.py version stamp on every SVN commit to SVN release number or timestamp? This would give some quick info of tracking of different packages. 

Distutils seem to offer some kind of magic version stamping mechanism, but I did not found any reference documentation how this should be used.
Automatically update setup.py version on every SVN commit
===

We are deploying Plone add-ons as development eggs with buildout. The eggs are pushed to the production as source code checkouts using Mr. Developer buildout recipe and .egg packaging is not done in any point.

What would be best way to automatically update setup.py version stamp on every SVN commit to SVN release number or timestamp? This would give some quick info of tracking of different packages. 

Distutils seem to offer some kind of magic version stamping mechanism, but I did not found any reference documentation how this should be used.