diff options
| author | Philip Thiem <ptthiem@gmail.com> | 2014-04-16 18:26:58 -0500 |
|---|---|---|
| committer | Philip Thiem <ptthiem@gmail.com> | 2014-04-16 18:26:58 -0500 |
| commit | 8bbdade197550e15b6e4c0115d2987e6dfdcb39f (patch) | |
| tree | 5aec098846855f85fd3f991f1a38b46a3031e2ee | |
| parent | 834e790b0db4def763f57123061ed4b5ab87294e (diff) | |
| download | python-setuptools-bitbucket-8bbdade197550e15b6e4c0115d2987e6dfdcb39f.tar.gz | |
Applied Patch from cazabon to handle svn tag revisions
| -rwxr-xr-x | setuptools/command/egg_info.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 9019524d..6bb2ead9 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -168,9 +168,10 @@ class egg_info(Command): version = '' if self.tag_build: version+=self.tag_build - if self.tag_svn_revision and ( - os.path.exists('.svn') or os.path.exists('PKG-INFO') - ): version += '-r%s' % self.get_svn_revision() + if self.tag_svn_revision: + rev = self.get_svn_revision() + if rev: # is 0 if it's not an svn working copy + version += '-r%s' % rev if self.tag_date: import time version += time.strftime("-%Y%m%d") |
