Skip to content

Commit 967f14e

Browse files
bpo-31525: Increase minimum sqlite version number check (GH-12923)
(cherry picked from commit ad0daf5) Co-authored-by: Charles Pigott <[email protected]>
1 parent 1069d38 commit 967f14e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ class db_found(Exception): pass
11301130
sqlite_setup_debug = False # verbose debug prints from this script?
11311131

11321132
# We hunt for #define SQLITE_VERSION "n.n.n"
1133-
# We need to find >= sqlite version 3.0.8
1133+
# We need to find >= sqlite version 3.3.9, for sqlite3_prepare_v2
11341134
sqlite_incdir = sqlite_libdir = None
11351135
sqlite_inc_paths = [ '/usr/include',
11361136
'/usr/include/sqlite',
@@ -1141,7 +1141,7 @@ class db_found(Exception): pass
11411141
]
11421142
if cross_compiling:
11431143
sqlite_inc_paths = []
1144-
MIN_SQLITE_VERSION_NUMBER = (3, 0, 8)
1144+
MIN_SQLITE_VERSION_NUMBER = (3, 3, 9)
11451145
MIN_SQLITE_VERSION = ".".join([str(x)
11461146
for x in MIN_SQLITE_VERSION_NUMBER])
11471147

@@ -1175,7 +1175,7 @@ class db_found(Exception): pass
11751175
break
11761176
else:
11771177
if sqlite_setup_debug:
1178-
print("%s: version %d is too old, need >= %s"%(d,
1178+
print("%s: version %s is too old, need >= %s"%(d,
11791179
sqlite_version, MIN_SQLITE_VERSION))
11801180
elif sqlite_setup_debug:
11811181
print("sqlite: %s had no SQLITE_VERSION"%(f,))

0 commit comments

Comments
 (0)