1 Add an option to disable the tk 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 | 14 +++++++++++---
8 configure.ac | 9 +++++++++
9 2 files changed, 20 insertions(+), 3 deletions(-)
11 Index: b/Makefile.pre.in
12 ===================================================================
16 EXTRAPLATDIR= @EXTRAPLATDIR@
17 MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR)
18 XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
19 -LIBSUBDIRS= tkinter \
23 collections concurrent concurrent/futures encodings \
25 venv venv/scripts venv/scripts/posix \
28 -TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \
29 - test test/test_asyncio \
30 +TESTSUBDIRS = test test/test_asyncio \
31 test/test_email test/test_email/data \
34 @@ -1213,6 +1212,12 @@
35 TESTSUBDIRS += sqlite3/test
39 +LIBSUBDIRS += tkinter
40 +TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \
41 + tkinter/test/test_ttk
44 ifeq (@TEST_MODULES@,yes)
45 LIBSUBDIRS += $(TESTSUBDIRS)
48 ===================================================================
51 @@ -2684,6 +2684,15 @@
52 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
57 + AS_HELP_STRING([--disable-tk], [disable tk]),
58 + [ TK="${enableval}" ], [ TK=yes ])
60 +if test "$TK" = "no"; then
61 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"