blob: 08bc619398f59c5160a2135e285e78b4a0dbc1d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
inherit python3native
EXTRA_PYTHON_DEPENDS ?= ""
EXTRA_PYTHON_DEPENDS:class-target = "python3"
DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
setup_target_config() {
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata:$PYTHONPATH
export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH
}
do_configure:prepend:class-target() {
setup_target_config
}
do_compile:prepend:class-target() {
setup_target_config
}
do_install:prepend:class-target() {
setup_target_config
}
do_configure:prepend:class-nativesdk() {
setup_target_config
}
do_compile:prepend:class-nativesdk() {
setup_target_config
}
do_install:prepend:class-nativesdk() {
setup_target_config
}
|