diff --git a/Misc/ACKS b/Misc/ACKS index 9d557a6cabb..bb037ed48ed 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -917,6 +917,7 @@ Samuele Pedroni Justin Peel Marcel van der Peijl Berker Peksag +Andreas Pelme Steven Pemberton Bo Peng Santiago Peresón diff --git a/Misc/NEWS b/Misc/NEWS index 07c86db10f7..a2777cede5b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -945,6 +945,9 @@ Tests Build ----- +- Issue #5033: Fix building of the sqlite3 extension module when the + SQLite library version has "beta" in it. Patch by Andreas Pelme. + - Issue #17228: Fix building without pymalloc. - Issue #3718: Use AC_ARG_VAR to set MACHDEP in configure.ac. diff --git a/setup.py b/setup.py index 4fd8efc4d2c..144767fbb83 100644 --- a/setup.py +++ b/setup.py @@ -1073,7 +1073,7 @@ class db_found(Exception): pass 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)