diff setup.py @ 82343:8b177aea9ddd 2.7

Issue #5033: Fix building of the sqlite3 extension module
author Petri Lehtinen <petri@digip.org>
date Sat, 23 Feb 2013 17:05:28 +0100
parents bf43e8c30a83
children 0f5e1e642dc3
line wrap: on
line diff
--- a/setup.py	Sat Feb 23 08:19:00 2013 +0200
+++ b/setup.py	Sat Feb 23 17:05:28 2013 +0100
@@ -1114,7 +1114,7 @@
                 if sqlite_setup_debug: print "sqlite: found %s"%f
                 incf = open(f).read()
                 m = re.search(
-                    r'\s*.*#\s*.*define\s.*SQLITE_VERSION\W*"(.*)"', incf)
+                    r'\s*.*#\s*.*define\s.*SQLITE_VERSION\W*"([\d\.]*)"', incf)
                 if m:
                     sqlite_version = m.group(1)
                     sqlite_version_tuple = tuple([int(x)