From 58c647555856674b22c1af0dc0274912101d297f Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Fri, 21 Oct 2022 07:28:42 -0700 Subject: Add missing sqlite module into our python3 build Bug: 195474139 Test: py3-cmd -c "import sqlite3; print(sqlite3.sqlite_version)" Change-Id: I439da2b86bd4b9425293c633a6217775daf5132a --- android/Setup.local | 2 ++ android/bionic/config.c | 2 ++ android/darwin/config.c | 2 ++ android/linux_arm64/config.c | 2 ++ android/linux_x86_64/config.c | 2 ++ 5 files changed, 10 insertions(+) (limited to 'android') diff --git a/android/Setup.local b/android/Setup.local index 0113ebb225..307db349a1 100644 --- a/android/Setup.local +++ b/android/Setup.local @@ -58,3 +58,5 @@ _sha512 sha512module.c _sha3 _sha3/sha3module.c _struct _struct.c + +_sqlite3 _sqlite/cache.c _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c _sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c diff --git a/android/bionic/config.c b/android/bionic/config.c index 8cdc7685f9..cf249dc7a0 100644 --- a/android/bionic/config.c +++ b/android/bionic/config.c @@ -73,6 +73,7 @@ extern PyObject* PyInit__sha256(void); extern PyObject* PyInit__sha512(void); extern PyObject* PyInit__sha3(void); extern PyObject* PyInit__struct(void); +extern PyObject* PyInit__sqlite3(void); extern PyObject* PyInit_posix(void); extern PyObject* PyInit_errno(void); extern PyObject* PyInit_pwd(void); @@ -157,6 +158,7 @@ struct _inittab _PyImport_Inittab[] = { {"_sha512", PyInit__sha512}, {"_sha3", PyInit__sha3}, {"_struct", PyInit__struct}, + {"_sqlite3", PyInit__sqlite3}, {"posix", PyInit_posix}, {"errno", PyInit_errno}, {"pwd", PyInit_pwd}, diff --git a/android/darwin/config.c b/android/darwin/config.c index 8cdc7685f9..cf249dc7a0 100644 --- a/android/darwin/config.c +++ b/android/darwin/config.c @@ -73,6 +73,7 @@ extern PyObject* PyInit__sha256(void); extern PyObject* PyInit__sha512(void); extern PyObject* PyInit__sha3(void); extern PyObject* PyInit__struct(void); +extern PyObject* PyInit__sqlite3(void); extern PyObject* PyInit_posix(void); extern PyObject* PyInit_errno(void); extern PyObject* PyInit_pwd(void); @@ -157,6 +158,7 @@ struct _inittab _PyImport_Inittab[] = { {"_sha512", PyInit__sha512}, {"_sha3", PyInit__sha3}, {"_struct", PyInit__struct}, + {"_sqlite3", PyInit__sqlite3}, {"posix", PyInit_posix}, {"errno", PyInit_errno}, {"pwd", PyInit_pwd}, diff --git a/android/linux_arm64/config.c b/android/linux_arm64/config.c index 8cdc7685f9..cf249dc7a0 100644 --- a/android/linux_arm64/config.c +++ b/android/linux_arm64/config.c @@ -73,6 +73,7 @@ extern PyObject* PyInit__sha256(void); extern PyObject* PyInit__sha512(void); extern PyObject* PyInit__sha3(void); extern PyObject* PyInit__struct(void); +extern PyObject* PyInit__sqlite3(void); extern PyObject* PyInit_posix(void); extern PyObject* PyInit_errno(void); extern PyObject* PyInit_pwd(void); @@ -157,6 +158,7 @@ struct _inittab _PyImport_Inittab[] = { {"_sha512", PyInit__sha512}, {"_sha3", PyInit__sha3}, {"_struct", PyInit__struct}, + {"_sqlite3", PyInit__sqlite3}, {"posix", PyInit_posix}, {"errno", PyInit_errno}, {"pwd", PyInit_pwd}, diff --git a/android/linux_x86_64/config.c b/android/linux_x86_64/config.c index 7889efefb3..c97555f17e 100644 --- a/android/linux_x86_64/config.c +++ b/android/linux_x86_64/config.c @@ -76,6 +76,7 @@ extern PyObject* PyInit__sha256(void); extern PyObject* PyInit__sha512(void); extern PyObject* PyInit__sha3(void); extern PyObject* PyInit__struct(void); +extern PyObject* PyInit__sqlite3(void); extern PyObject* PyInit_posix(void); extern PyObject* PyInit_errno(void); extern PyObject* PyInit_pwd(void); @@ -163,6 +164,7 @@ struct _inittab _PyImport_Inittab[] = { {"_sha512", PyInit__sha512}, {"_sha3", PyInit__sha3}, {"_struct", PyInit__struct}, + {"_sqlite3", PyInit__sqlite3}, {"posix", PyInit_posix}, {"errno", PyInit_errno}, {"pwd", PyInit_pwd}, -- cgit v1.2.3