summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/python3targetconfig.bbclass
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-11-09 21:21:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-07 14:56:54 +0000
commit990af746c250dcb1b7b46e0c887e2ccf67f67d26 (patch)
treebe448e2636be5044048d0c6f6f566a12e357a4ff /meta/classes-recipe/python3targetconfig.bbclass
parent3c499e21f4225fdaebbb22582753f736ce7e4a73 (diff)
downloadpoky-990af746c250dcb1b7b46e0c887e2ccf67f67d26.tar.gz
python3: use the standard shell version of python3-config
There is really no reason why we can't: it only needs to be available in two versions (native/target), and the correct one can be picked via PATH priority order. This eliminates two un-upstreamable patches, one of which relies on soon to be removed distutils. (From OE-Core rev: d0145ead0f80ba4bde8e24617a8725f38eda8339) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/python3targetconfig.bbclass')
-rw-r--r--meta/classes-recipe/python3targetconfig.bbclass17
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/classes-recipe/python3targetconfig.bbclass b/meta/classes-recipe/python3targetconfig.bbclass
index 3f89e5e09e..02fdb0c03f 100644
--- a/meta/classes-recipe/python3targetconfig.bbclass
+++ b/meta/classes-recipe/python3targetconfig.bbclass
@@ -10,26 +10,31 @@ EXTRA_PYTHON_DEPENDS ?= ""
10EXTRA_PYTHON_DEPENDS:class-target = "python3" 10EXTRA_PYTHON_DEPENDS:class-target = "python3"
11DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}" 11DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
12 12
13do_configure:prepend:class-target() { 13setup_target_config() {
14 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" 14 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
15 export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH
16}
17
18do_configure:prepend:class-target() {
19 setup_target_config
15} 20}
16 21
17do_compile:prepend:class-target() { 22do_compile:prepend:class-target() {
18 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" 23 setup_target_config
19} 24}
20 25
21do_install:prepend:class-target() { 26do_install:prepend:class-target() {
22 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" 27 setup_target_config
23} 28}
24 29
25do_configure:prepend:class-nativesdk() { 30do_configure:prepend:class-nativesdk() {
26 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" 31 setup_target_config
27} 32}
28 33
29do_compile:prepend:class-nativesdk() { 34do_compile:prepend:class-nativesdk() {
30 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" 35 setup_target_config
31} 36}
32 37
33do_install:prepend:class-nativesdk() { 38do_install:prepend:class-nativesdk() {
34 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" 39 setup_target_config
35} 40}