2010-12-26 10:28:49 +01:00
|
|
|
Add an option to disable the tk module
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2012-11-30 11:46:27 +00:00
|
|
|
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
2010-12-26 10:28:49 +01:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
Makefile.pre.in | 14 ++++++++++----
|
|
|
|
|
configure.in | 9 +++++++++
|
|
|
|
|
2 files changed, 19 insertions(+), 4 deletions(-)
|
|
|
|
|
|
2014-02-13 21:48:53 +01:00
|
|
|
Index: b/Makefile.pre.in
|
2010-12-26 10:28:49 +01:00
|
|
|
===================================================================
|
2014-02-13 21:48:53 +01:00
|
|
|
--- a/Makefile.pre.in
|
|
|
|
|
+++ b/Makefile.pre.in
|
|
|
|
|
@@ -934,8 +934,7 @@
|
2010-12-26 10:28:49 +01:00
|
|
|
plat-mac/lib-scriptpackages/SystemEvents \
|
2014-02-13 21:48:53 +01:00
|
|
|
plat-mac/lib-scriptpackages/Terminal
|
2010-12-26 10:28:49 +01:00
|
|
|
PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
|
2014-02-13 21:48:53 +01:00
|
|
|
-LIBSUBDIRS= lib-tk \
|
|
|
|
|
- site-packages \
|
2010-12-26 10:28:49 +01:00
|
|
|
+LIBSUBDIRS= site-packages \
|
|
|
|
|
encodings compiler hotshot \
|
|
|
|
|
email email/mime \
|
|
|
|
|
json \
|
2014-02-13 21:48:53 +01:00
|
|
|
@@ -947,9 +946,7 @@
|
|
|
|
|
lib-old \
|
2010-12-26 10:28:49 +01:00
|
|
|
curses $(MACHDEPS)
|
|
|
|
|
|
2014-02-13 21:48:53 +01:00
|
|
|
-TESTSUBDIRS = lib-tk/test lib-tk/test/test_tkinter \
|
|
|
|
|
- lib-tk/test/test_ttk \
|
|
|
|
|
- test test/audiodata test/data \
|
|
|
|
|
+TESTSUBDIRS = test test/audiodata test/data \
|
|
|
|
|
test/cjkencodings test/decimaltestdata test/xmltestdata test/subprocessdata \
|
|
|
|
|
test/tracedmodules \
|
|
|
|
|
email/test email/test/data \
|
|
|
|
|
@@ -980,6 +977,12 @@
|
|
|
|
|
TESTSUBDIRS += sqlite3/test
|
2010-12-26 10:28:49 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
+ifeq (@TK@,yes)
|
|
|
|
|
+LIBSUBDIRS += lib-tk
|
2014-02-13 21:48:53 +01:00
|
|
|
+TESTSUBDIRS += lib-tk/test lib-tk/test/test_tkinter \
|
2010-12-26 10:28:49 +01:00
|
|
|
+ lib-tk/test/test_ttk
|
|
|
|
|
+endif
|
|
|
|
|
+
|
2012-11-30 11:46:27 +00:00
|
|
|
libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
|
2010-12-26 10:28:49 +01:00
|
|
|
@for i in $(SCRIPTDIR) $(LIBDEST); \
|
|
|
|
|
do \
|
2014-02-13 21:48:53 +01:00
|
|
|
Index: b/configure.ac
|
2010-12-26 10:28:49 +01:00
|
|
|
===================================================================
|
2014-02-13 21:48:53 +01:00
|
|
|
--- a/configure.ac
|
|
|
|
|
+++ b/configure.ac
|
|
|
|
|
@@ -2622,6 +2622,15 @@
|
2010-12-26 10:28:49 +01:00
|
|
|
DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
+AC_SUBST(TK)
|
|
|
|
|
+AC_ARG_ENABLE(tk,
|
|
|
|
|
+ AS_HELP_STRING([--disable-tk], [disable tk]),
|
|
|
|
|
+ [ TK="${enableval}" ], [ TK=yes ])
|
|
|
|
|
+
|
|
|
|
|
+if test "$TK" = "no"; then
|
|
|
|
|
+ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
AC_SUBST(PYDOC)
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(pydoc,
|