diff options
| author | Mingli Yu <Mingli.Yu@windriver.com> | 2018-11-14 17:36:11 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-23 23:35:19 +0000 |
| commit | 75d2d6776b434e998c0ad7ef531ce179d1595e7d (patch) | |
| tree | 88031e6788c06a032cf79b6d7981e5578983cd8a /meta/recipes-devtools/python/python3_3.5.6.bb | |
| parent | a596919132b10dab348bd33352b02f5e21bb0499 (diff) | |
| download | poky-75d2d6776b434e998c0ad7ef531ce179d1595e7d.tar.gz | |
python3: add tk support
Add support to enable tk via PACKAGECONFIG.
before this patch:
# python3
Python 3.5.6 (default, Nov 8 2018, 04:53:45)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.5/tkinter/__init__.py", line 35, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'
>>>
After this patch, if enable tk in PACKAGECONFIG, then
# python3
Python 3.5.6 (default, Nov 8 2018, 03:15:52)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>>
(From OE-Core rev: 4b781d545e7e0b084201cd6a8fad953b0f231513)
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.5.6.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.5.6.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb index 5408e3f9fc..25c47b6192 100644 --- a/meta/recipes-devtools/python/python3_3.5.6.bb +++ b/meta/recipes-devtools/python/python3_3.5.6.bb | |||
| @@ -21,7 +21,7 @@ ${DISTRO_SRC_URI} \ | |||
| 21 | 21 | ||
| 22 | SRC_URI += "\ | 22 | SRC_URI += "\ |
| 23 | file://03-fix-tkinter-detection.patch \ | 23 | file://03-fix-tkinter-detection.patch \ |
| 24 | file://avoid_warning_about_tkinter.patch \ | 24 | ${@bb.utils.contains('PACKAGECONFIG', 'tk', '', 'file://avoid_warning_about_tkinter.patch', d)} \ |
| 25 | file://cgi_py.patch \ | 25 | file://cgi_py.patch \ |
| 26 | file://host_include_contamination.patch \ | 26 | file://host_include_contamination.patch \ |
| 27 | file://python-3.3-multilib.patch \ | 27 | file://python-3.3-multilib.patch \ |
| @@ -82,6 +82,7 @@ PACKAGECONFIG ??= "readline ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-userm | |||
| 82 | PACKAGECONFIG[readline] = ",,readline" | 82 | PACKAGECONFIG[readline] = ",,readline" |
| 83 | # Use profile guided optimisation by running PyBench inside qemu-user | 83 | # Use profile guided optimisation by running PyBench inside qemu-user |
| 84 | PACKAGECONFIG[pgo] = "--enable-optimizations" | 84 | PACKAGECONFIG[pgo] = "--enable-optimizations" |
| 85 | PACKAGECONFIG[tk] = ",,tk" | ||
| 85 | 86 | ||
| 86 | do_configure_append() { | 87 | do_configure_append() { |
| 87 | rm -f ${S}/Makefile.orig | 88 | rm -f ${S}/Makefile.orig |
| @@ -246,7 +247,7 @@ PACKAGES += "${PN}-man" | |||
| 246 | FILES_${PN}-man = "${datadir}/man" | 247 | FILES_${PN}-man = "${datadir}/man" |
| 247 | 248 | ||
| 248 | RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2" | 249 | RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2" |
| 249 | 250 | RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk', '', d)}" | |
| 250 | RDEPENDS_${PN}-dev = "" | 251 | RDEPENDS_${PN}-dev = "" |
| 251 | 252 | ||
| 252 | BBCLASSEXTEND = "nativesdk" | 253 | BBCLASSEXTEND = "nativesdk" |
