diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-09 21:21:09 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-07 14:56:54 +0000 |
commit | 990af746c250dcb1b7b46e0c887e2ccf67f67d26 (patch) | |
tree | be448e2636be5044048d0c6f6f566a12e357a4ff /meta/classes-recipe | |
parent | 3c499e21f4225fdaebbb22582753f736ce7e4a73 (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes-recipe/python3targetconfig.bbclass | 17 |
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 ?= "" | |||
10 | EXTRA_PYTHON_DEPENDS:class-target = "python3" | 10 | EXTRA_PYTHON_DEPENDS:class-target = "python3" |
11 | DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}" | 11 | DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}" |
12 | 12 | ||
13 | do_configure:prepend:class-target() { | 13 | setup_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 | |||
18 | do_configure:prepend:class-target() { | ||
19 | setup_target_config | ||
15 | } | 20 | } |
16 | 21 | ||
17 | do_compile:prepend:class-target() { | 22 | do_compile:prepend:class-target() { |
18 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" | 23 | setup_target_config |
19 | } | 24 | } |
20 | 25 | ||
21 | do_install:prepend:class-target() { | 26 | do_install:prepend:class-target() { |
22 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" | 27 | setup_target_config |
23 | } | 28 | } |
24 | 29 | ||
25 | do_configure:prepend:class-nativesdk() { | 30 | do_configure:prepend:class-nativesdk() { |
26 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" | 31 | setup_target_config |
27 | } | 32 | } |
28 | 33 | ||
29 | do_compile:prepend:class-nativesdk() { | 34 | do_compile:prepend:class-nativesdk() { |
30 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" | 35 | setup_target_config |
31 | } | 36 | } |
32 | 37 | ||
33 | do_install:prepend:class-nativesdk() { | 38 | do_install:prepend:class-nativesdk() { |
34 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" | 39 | setup_target_config |
35 | } | 40 | } |