diff options
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.patch | 30 |
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 | ||
2 | in yocto so we skip the check for this module. | ||
3 | Avoid a warning by not adding this module to missing variable. | ||
4 | |||
5 | Also simply disable the tk module since its not in DEPENDS. | ||
6 | |||
7 | Upstream-Status: Inappropriate [distribution] | ||
8 | |||
9 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
10 | |||
11 | Index: 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 | |||