Issue #5033: Fix building of the sqlite3 extension module

This commit is contained in:
Petri Lehtinen 2013-02-23 17:05:28 +01:00
parent 0a4a7e13f3
commit c23178ba36
3 changed files with 5 additions and 1 deletions

View file

@ -1114,7 +1114,7 @@ class db_found(Exception): pass
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)