diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2009-06-17 14:28:03 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2009-06-17 14:28:03 +0000 |
commit | b9a22d7e42af2d34a563803962d1909c730a1ac9 (patch) | |
tree | 671a615c6127218edf9c026115a9b8f83d48f46a | |
parent | aed9ab98d922aa8f5bd76a5bffd71ebfab908c02 (diff) | |
download | numpy-b9a22d7e42af2d34a563803962d1909c730a1ac9.tar.gz |
Continue building even if svn revision detection breaks.
-rwxr-xr-x | setup.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -53,7 +53,7 @@ MINOR = 4 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 svn_version(): 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 |