summaryrefslogtreecommitdiff
path: root/recipes-devtools/python/python_2.7.9.bbappend
blob: 64d3787983fb3bc70bf960e7a82fd300ae5598c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 += "${@bb.utils.contains('PACKAGECONFIG', 'tkinter', 'tcl tk', '', d)}"
SRC_URI += " \
  ${@bb.utils.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.')
}