1 Add option to disable the sqlite3 module
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
7 Makefile.pre.in | 9 +++++++--
8 configure.ac | 9 +++++++++
9 2 files changed, 16 insertions(+), 2 deletions(-)
11 Index: cpython/configure.ac
12 ===================================================================
13 --- cpython.orig/configure.ac
14 +++ cpython/configure.ac
15 @@ -2448,6 +2448,15 @@
20 +AC_ARG_ENABLE(sqlite3,
21 + AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]),
22 + [ SQLITE3="${enableval}" ], [ SQLITE3=yes ])
24 +if test "$SQLITE3" = "no" ; then
25 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
31 Index: cpython/Makefile.pre.in
32 ===================================================================
33 --- cpython.orig/Makefile.pre.in
34 +++ cpython/Makefile.pre.in
36 collections concurrent concurrent/futures encodings \
38 html json http dbm xmlrpc \
40 logging csv wsgiref urllib \
41 ctypes ctypes/macholib idlelib idlelib/Icons \
42 distutils distutils/command $(XMLLIBSUBDIRS) \
44 test/namespace_pkgs/module_and_namespace_package/a_test \
45 test/test_email test/test_email/data \
50 test/test_importlib test/test_importlib/builtin \
51 @@ -1048,6 +1046,13 @@
56 +LIBSUBDIRS += sqlite3
57 +ifeq (@TEST_MODULES@,yes)
58 +LIBSUBDIRS += sqlite3/test
62 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
63 @for i in $(SCRIPTDIR) $(LIBDEST); \