luaposix: bump to version 31
[buildroot-gz.git] / package / python3 / python3-103-optional-sqlite.patch
blobe3a63c3e0246f5a3c09f59767baf09258d747c43
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>
6 ---
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 @@
16 esac])
19 +AC_SUBST(SQLITE3)
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"
26 +fi
28 AC_SUBST(PYDOC)
30 AC_ARG_ENABLE(pydoc,
31 Index: cpython/Makefile.pre.in
32 ===================================================================
33 --- cpython.orig/Makefile.pre.in
34 +++ cpython/Makefile.pre.in
35 @@ -985,7 +985,6 @@
36 collections concurrent concurrent/futures encodings \
37 email email/mime \
38 html json http dbm xmlrpc \
39 - sqlite3 \
40 logging csv wsgiref urllib \
41 ctypes ctypes/macholib idlelib idlelib/Icons \
42 distutils distutils/command $(XMLLIBSUBDIRS) \
43 @@ -1025,7 +1024,6 @@
44 test/namespace_pkgs/module_and_namespace_package/a_test \
45 test/test_email test/test_email/data \
46 test/json_tests \
47 - sqlite3/test \
48 ctypes/test \
49 distutils/tests \
50 test/test_importlib test/test_importlib/builtin \
51 @@ -1048,6 +1046,13 @@
52 endif
53 endif
55 +ifeq (@SQLITE3@,yes)
56 +LIBSUBDIRS += sqlite3
57 +ifeq (@TEST_MODULES@,yes)
58 +LIBSUBDIRS += sqlite3/test
59 +endif
60 +endif
62 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
63 @for i in $(SCRIPTDIR) $(LIBDEST); \
64 do \