mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #5033: Fix building of the sqlite3 extension module
This commit is contained in:
commit
d784e53d96
3 changed files with 5 additions and 1 deletions
2
setup.py
2
setup.py
|
@ -1073,7 +1073,7 @@ class PyBuildExt(build_ext):
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue