Permalink
Browse files

Continue building even if svn revision detection breaks.

  • Loading branch information...
1 parent aed9ab9 commit b9a22d7e42af2d34a563803962d1909c730a1ac9 @stefanv stefanv committed Jun 17, 2009
Showing with 5 additions and 4 deletions.
  1. +5 −4 setup.py
View
@@ -53,7 +53,7 @@
MICRO = 0
ISRELEASED = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
-
+
# Return the svn version as a string, raise a ValueError otherwise
def svn_version():
def _minimal_ext_cmd(cmd):
@@ -76,14 +76,15 @@ def _minimal_ext_cmd(cmd):
return ""
r = re.compile('Revision: ([0-9]+)')
- svnver = None
+ svnver = ""
for line in out.split('\n'):
- m = r.match(line)
+ m = r.match(line.strip())
if m:
svnver = m.group(1)
if not svnver:
- raise ValueError("Error while parsing svn version ?")
+ print("Error while parsing svn version")
+
return svnver
# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly

0 comments on commit b9a22d7

Please sign in to comment.