summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch')
-rw-r--r--meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch b/meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch
new file mode 100644
index 0000000000..bedc3909d8
--- /dev/null
+++ b/meta/recipes-devtools/python/python/avoid_warning_about_tkinter.patch
@@ -0,0 +1,30 @@
1_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
5Also simply disable the tk module since its not in DEPENDS.
6
7Upstream-Status: Inappropriate [distribution]
8
9Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
10
11Index: Python-2.7.3/setup.py
12===================================================================
13--- Python-2.7.3.orig/setup.py 2014-07-07 13:45:15.056233820 +0000
14+++ Python-2.7.3/setup.py 2014-07-16 16:06:37.145656284 +0000
15@@ -1639,10 +1639,12 @@
16 self.extensions.extend(exts)
17
18 # Call the method for detecting whether _tkinter can be compiled
19- self.detect_tkinter(inc_dirs, lib_dirs)
20+ #self.detect_tkinter(inc_dirs, lib_dirs)
21
22- if '_tkinter' not in [e.name for e in self.extensions]:
23- missing.append('_tkinter')
24+ # tkinter module will not be avalaible as yocto
25+ # doesn't have tk integrated (yet)
26+ #if '_tkinter' not in [e.name for e in self.extensions]:
27+ # missing.append('_tkinter')
28
29 return missing
30