xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 6a23d52c905cd1f6a5944255903ec86ea8b904bb Mon Sep 17 00:00:00 2001
2From: Andrei Gherzan <andrei@gherzan.ro>
3Date: Mon, 28 Jan 2019 15:57:54 +0000
4Subject: [PATCH] _tkinter module needs tk module along with tcl. tk is not yet
5 integrated in yocto so we skip the check for this module. Avoid a warning by
6 not adding this module to missing variable.
7
8Upstream-Status: Inappropriate [distribution]
9
10Also simply disable the tk module since its not in DEPENDS.
11Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
12
13---
14 setup.py | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/setup.py b/setup.py
18index 11b5cf5..2be4738 100644
19--- a/setup.py
20+++ b/setup.py
21@@ -1895,8 +1895,8 @@ class PyBuildExt(build_ext):
22         self.detect_decimal()
23         self.detect_ctypes()
24         self.detect_multiprocessing()
25-        if not self.detect_tkinter():
26-            self.missing.append('_tkinter')
27+#        if not self.detect_tkinter():
28+#            self.missing.append('_tkinter')
29         self.detect_uuid()
30
31 ##         # Uncomment these lines if you want to play with xxmodule.c
32