summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-recipe/python3targetconfig.bbclass1
-rw-r--r--meta/classes-recipe/setuptools3_legacy.bbclass2
-rw-r--r--meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch28
-rw-r--r--meta/recipes-devtools/python/python3_3.11.0.bb1
4 files changed, 2 insertions, 30 deletions
diff --git a/meta/classes-recipe/python3targetconfig.bbclass b/meta/classes-recipe/python3targetconfig.bbclass
index 02fdb0c03f..22305fe176 100644
--- a/meta/classes-recipe/python3targetconfig.bbclass
+++ b/meta/classes-recipe/python3targetconfig.bbclass
@@ -12,6 +12,7 @@ DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
12 12
13setup_target_config() { 13setup_target_config() {
14 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" 14 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
15 export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata
15 export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH 16 export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH
16} 17}
17 18
diff --git a/meta/classes-recipe/setuptools3_legacy.bbclass b/meta/classes-recipe/setuptools3_legacy.bbclass
index 21748f922a..57de956d0a 100644
--- a/meta/classes-recipe/setuptools3_legacy.bbclass
+++ b/meta/classes-recipe/setuptools3_legacy.bbclass
@@ -49,7 +49,7 @@ setuptools3_legacy_do_install() {
49 install -d ${D}${PYTHON_SITEPACKAGES_DIR} 49 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
50 STAGING_INCDIR=${STAGING_INCDIR} \ 50 STAGING_INCDIR=${STAGING_INCDIR} \
51 STAGING_LIBDIR=${STAGING_LIBDIR} \ 51 STAGING_LIBDIR=${STAGING_LIBDIR} \
52 PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \ 52 PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR}:$PYTHONPATH \
53 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py \ 53 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py \
54 build --build-base=${B} install --skip-build ${SETUPTOOLS_INSTALL_ARGS} || \ 54 build --build-base=${B} install --skip-build ${SETUPTOOLS_INSTALL_ARGS} || \
55 bbfatal_log "'${PYTHON_PN} setup.py install ${SETUPTOOLS_INSTALL_ARGS}' execution failed." 55 bbfatal_log "'${PYTHON_PN} setup.py install ${SETUPTOOLS_INSTALL_ARGS}' execution failed."
diff --git a/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch b/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch
deleted file mode 100644
index 45a37ed1a9..0000000000
--- a/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From 9c6b9f46179c8f9c9391767e2b02f268a1ee7a9c Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 31 Jan 2019 16:46:30 +0100
4Subject: [PATCH] distutils/sysconfig: append
5 STAGING_LIBDIR/python-sysconfigdata to sys.path
6
7So that target configuration can be used when running native python
8
9Upstream-Status: Inappropriate [oe-core specific]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11
12---
13 Lib/sysconfig.py | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
17index ff399e2..95844cf 100644
18--- a/Lib/sysconfig.py
19+++ b/Lib/sysconfig.py
20@@ -528,6 +528,8 @@ def _init_posix(vars):
21 """Initialize the module as appropriate for POSIX systems."""
22 # _sysconfigdata is generated at build time, see _generate_posix_vars()
23 name = _get_sysconfigdata_name()
24+ if 'STAGING_LIBDIR' in os.environ:
25+ sys.path.append(os.environ['STAGING_LIBDIR']+'/python-sysconfigdata')
26 _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
27 build_time_vars = _temp.build_time_vars
28 vars.update(build_time_vars)
diff --git a/meta/recipes-devtools/python/python3_3.11.0.bb b/meta/recipes-devtools/python/python3_3.11.0.bb
index abcfc3ec32..ff25fe1ac4 100644
--- a/meta/recipes-devtools/python/python3_3.11.0.bb
+++ b/meta/recipes-devtools/python/python3_3.11.0.bb
@@ -38,7 +38,6 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
38 38
39SRC_URI:append:class-native = " \ 39SRC_URI:append:class-native = " \
40 file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \ 40 file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \
41 file://0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch \
42 file://12-distutils-prefix-is-inside-staging-area.patch \ 41 file://12-distutils-prefix-is-inside-staging-area.patch \
43 file://0001-Don-t-search-system-for-headers-libraries.patch \ 42 file://0001-Don-t-search-system-for-headers-libraries.patch \
44 " 43 "