blob: 3347321fde6c819efca6a669799bdd6df3e2b232 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001_tkinter module needs tk module along with tcl. tk is not yet integrated
2in yocto so we skip the check for this module.
3Avoid a warning by not adding this module to missing variable.
4
5Upstream-Status: Inappropriate [distribution]
6
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007Also simply disable the tk module since its not in DEPENDS.
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
9
10Index: Python-2.7.2/setup.py
11===================================================================
12--- Python-2.7.2.orig/setup.py 2012-04-05 23:18:38.500136647 +0300
13+++ Python-2.7.2/setup.py 2012-04-05 23:19:35.888134969 +0300
14@@ -1634,8 +1634,10 @@
15 # Call the method for detecting whether _tkinter can be compiled
16 self.detect_tkinter(inc_dirs, lib_dirs)
17
18- if '_tkinter' not in [e.name for e in self.extensions]:
19- missing.append('_tkinter')
20+ # tkinter module will not be avalaible as yocto
21+ # doesn't have tk integrated (yet)
22+ #if '_tkinter' not in [e.name for e in self.extensions]:
23+ # missing.append('_tkinter')
24
25 return missing
26
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027diff --git Python-3.5.1.orig/setup.py Python-3.5.1/setup.py
28index b4633b9..d7588c0 100644
29--- Python-3.5.1.orig/setup.py
30+++ Python-3.5.1/setup.py
31@@ -1536,7 +1536,7 @@ class PyBuildExt(build_ext):
32 self.extensions.extend(exts)
33
34 # Call the method for detecting whether _tkinter can be compiled
35- self.detect_tkinter(inc_dirs, lib_dirs)
36+ # self.detect_tkinter(inc_dirs, lib_dirs)
37
38 # tkinter module will not be avalaible as yocto
39 # doesn't have tk integrated (yet)