Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From fead48c8b501a8d7c3db21df2e599f90f38f11d3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Andrei Gherzan <andrei@gherzan.ro> |
| 3 | Date: Mon, 28 Jan 2019 15:57:54 +0000 |
| 4 | Subject: [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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | |
| 8 | Upstream-Status: Inappropriate [distribution] |
| 9 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 10 | Also simply disable the tk module since its not in DEPENDS. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> |
| 12 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 13 | --- |
| 14 | setup.py | 8 +++++--- |
| 15 | 1 file changed, 5 insertions(+), 3 deletions(-) |
| 16 | |
| 17 | diff --git a/setup.py b/setup.py |
| 18 | index fbec00d..b7a36a6 100644 |
| 19 | --- a/setup.py |
| 20 | +++ b/setup.py |
| 21 | @@ -1623,10 +1623,12 @@ class PyBuildExt(build_ext): |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | self.extensions.extend(exts) |
| 23 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | # Call the method for detecting whether _tkinter can be compiled |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 25 | - self.detect_tkinter(inc_dirs, lib_dirs) |
| 26 | + # self.detect_tkinter(inc_dirs, lib_dirs) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
| 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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 35 | # Build the _uuid module if possible |
| 36 | uuid_incs = find_file("uuid.h", inc_dirs, ["/usr/include/uuid"]) |