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.in | 9 +++++++++
9 2 files changed, 19 insertions(+), 4 deletions(-)
11 Index: b/Makefile.pre.in
12 ===================================================================
16 plat-mac/lib-scriptpackages/SystemEvents \
17 plat-mac/lib-scriptpackages/Terminal
18 PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
19 -LIBSUBDIRS= lib-tk site-packages \
20 +LIBSUBDIRS= site-packages \
21 encodings compiler hotshot \
23 ensurepip ensurepip/_bundled \
28 -TESTSUBDIRS = lib-tk/test lib-tk/test/test_tkinter \
29 - lib-tk/test/test_ttk test test/audiodata test/capath test/data \
30 +TESTSUBDIRS = test test/audiodata test/capath test/data \
31 test/cjkencodings test/decimaltestdata test/xmltestdata \
34 @@ -1009,6 +1008,12 @@
35 TESTSUBDIRS += sqlite3/test
40 +TESTSUBDIRS += lib-tk/test lib-tk/test/test_tkinter \
41 + lib-tk/test/test_ttk
44 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
45 @for i in $(SCRIPTDIR) $(LIBDEST); \
48 ===================================================================
51 @@ -2642,6 +2642,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"