diff --git a/databases/py-sqlite3/Makefile b/databases/py-sqlite3/Makefile index 168a5f8cbb0d..8baa11da345c 100644 --- a/databases/py-sqlite3/Makefile +++ b/databases/py-sqlite3/Makefile @@ -35,6 +35,9 @@ post-extract: .endif post-install: - ${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/lib-dynload/_sqlite3*.so + @${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/lib-dynload/_sqlite3*.so + +do-test: + @${PYTHON_CMD} -c 'import sqlite3' # minimal smoke test .include diff --git a/databases/py-sqlite3/files/setup3.py b/databases/py-sqlite3/files/setup3.py index 7407503ceb54..944c89920852 100644 --- a/databases/py-sqlite3/files/setup3.py +++ b/databases/py-sqlite3/files/setup3.py @@ -35,6 +35,9 @@ major, minor = map(int, platform.python_version_tuple()[:2]) if (major, minor) <= (3, 10): sqlite_srcs.append('_sqlite/cache.c',) +if (major, minor) >= (3, 11): + sqlite_srcs.append('_sqlite/blob.c',) + try: import ctypes ctypes.CDLL('libsqlite3.so').sqlite3_load_extension