Charles Cazabon email@example.com wrote:
I'm having trouble getting setuptools to properly extract the svn revision and write it into the <package>.egg-info/PKG-INFO file in a new environment.
Spent some time tracking this down, and it appears to be a bug in setuptools. In my environment (Python 2.7.6 virtualenv with setuptools 3.4.3) and a local package which is in a subdir of the svn 1.8.x working copy checkout, this test in egg_info.py:tags():
if self.tag_svn_revision and ( os.path.exists('.svn') or os.path.exists('PKG-INFO') :)
... fails. Fixing that test fixes the problem for me. I'll file an issue on the project bugtracker.
Charles Cazabon firstname.lastname@example.org