diff setup.py @ 82344:73d5dd480558 3.2

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 ce411fd690fd
children 8f91014c8f00 c613eb716c8e
line wrap: on
line diff
--- a/setup.py	Sat Feb 23 07:53:56 2013 +0200
+++ b/setup.py	Sat Feb 23 17:05:28 2013 +0100
@@ -1012,7 +1012,7 @@
                 with open(f) as file:
                     incf = file.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)