Skip to content

Commit d34640c

Browse files
fix: enable missing extensions on sqlite3 (#1810)
* fix: enable missing extensions on sqlite3 * Add a check for missing extensions in sqlite3
1 parent 7b12983 commit d34640c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docker/build_scripts/build-sqlite3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tar xfz "${SQLITE_AUTOCONF_ROOT}.tar.gz"
2323
pushd "${SQLITE_AUTOCONF_ROOT}"
2424
# add rpath
2525
sed -i "s|^Libs:|Libs: -Wl,--enable-new-dtags,-rpath=\${libdir} |g" sqlite3.pc.in
26-
DESTDIR=/manylinux-rootfs do_standard_install --prefix=${PREFIX}
26+
DESTDIR=/manylinux-rootfs do_standard_install --prefix=${PREFIX} --enable-all
2727
popd
2828
rm -rf "${SQLITE_AUTOCONF_ROOT}" "${SQLITE_AUTOCONF_ROOT}.tar.gz"
2929

docker/tests/modules-check.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ def test_sqlite3(self):
1010
print(f"{sqlite3.sqlite_version=}", end=" ", flush=True)
1111
assert sqlite3.sqlite_version_info[0:2] >= (3, 50)
1212

13+
# When the extension is not installed, it raises:
14+
# sqlite3.OperationalError: no such module: fts5
15+
conn = sqlite3.connect(":memory:")
16+
conn.execute("create virtual table fts5test using fts5 (data);")
17+
1318
def test_tkinter(self):
1419
# Make sure tkinter module can be loaded properly
1520
import tkinter as tk

0 commit comments

Comments
 (0)