diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-01-05 11:12:16 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-14 16:53:18 +0100 |
commit | 8a158e272efb2ba4290c90b119519953a6d88112 (patch) | |
tree | 09690060cb2a89d98b7a359838fc98473bc40163 /recipes-devtools/python/python_2.7.9.bbappend | |
parent | 1c8332215a6dd8a9f59818c60e343bd2298a885b (diff) |
python: add a PACKAGECONFIG for _tkinter
Currently _tkinter is only built when tcl/tk is available before the
python do_configure task is built.
Make this deterministic by providing a PACKAGECONFIG for it.
If tkinter is in PACKAGECONFIG add the needed dependencies,
if not force that tkinter is not built.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-devtools/python/python_2.7.9.bbappend')
-rw-r--r-- | recipes-devtools/python/python_2.7.9.bbappend | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-devtools/python/python_2.7.9.bbappend b/recipes-devtools/python/python_2.7.9.bbappend new file mode 100644 index 0000000..ff0071f --- /dev/null +++ b/recipes-devtools/python/python_2.7.9.bbappend @@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/python:" + +SRC_URI_remove = "file://avoid_warning_about_tkinter.patch" + +PACKAGECONFIG ?= "" + +PACKAGECONFIG[tkinter] = ",,tk" +PACKAGECONFIG_remove_class-native = "tkinter" +PACKAGECONFIG_remove_class-nativesdk = "tkinter" +RDEPENDS_${PN}-tkinter_append += "${@base_contains('PACKAGECONFIG', 'tkinter', 'tcl tk', '', d)}" +SRC_URI += " \ + ${@base_contains('PACKAGECONFIG', 'tkinter', '', 'file://dont_build_tkinter.patch', d)} \ +" +python __anonymous() { + if not 'openembedded-layer' in d.getVar('BBFILE_COLLECTIONS'): + if 'tkinter' in d.getVar('PACKAGECONFIG'): + bb.error('Python PACKAGECONFIG tkinter requires tk provided by' \ + 'meta-oe layer but the layer is not available.') +} |