blob: 24e67b4ca141cf63a3b502d35187014324d2ace7 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From fead48c8b501a8d7c3db21df2e599f90f38f11d3 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.
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
8Upstream-Status: Inappropriate [distribution]
9
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050010Also simply disable the tk module since its not in DEPENDS.
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
12
Brad Bishop19323692019-04-05 15:28:33 -040013---
14 setup.py | 8 +++++---
15 1 file changed, 5 insertions(+), 3 deletions(-)
16
17diff --git a/setup.py b/setup.py
18index fbec00d..b7a36a6 100644
19--- a/setup.py
20+++ b/setup.py
21@@ -1623,10 +1623,12 @@ class PyBuildExt(build_ext):
Brad Bishop316dfdd2018-06-25 12:45:53 -040022 self.extensions.extend(exts)
23
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024 # Call the method for detecting whether _tkinter can be compiled
Brad Bishop316dfdd2018-06-25 12:45:53 -040025- self.detect_tkinter(inc_dirs, lib_dirs)
26+ # self.detect_tkinter(inc_dirs, lib_dirs)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
28- if '_tkinter' not in [e.name for e in self.extensions]:
29- missing.append('_tkinter')
30+ # tkinter module will not be avalaible as yocto
31+ # doesn't have tk integrated (yet)
32+ #if '_tkinter' not in [e.name for e in self.extensions]:
33+ # missing.append('_tkinter')
34
Brad Bishop19323692019-04-05 15:28:33 -040035 # Build the _uuid module if possible
36 uuid_incs = find_file("uuid.h", inc_dirs, ["/usr/include/uuid"])