summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2022-08-23 07:03:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-25 11:08:06 +0100
commit3e2fc111700ab099ddd95c3cbf35cc8ff4d12b66 (patch)
treef32426fc18012db1debe3a3b2203b946291ee455 /meta
parent0a095d4afb19d5186fc2685990ff1a511d5c49bf (diff)
downloadpoky-3e2fc111700ab099ddd95c3cbf35cc8ff4d12b66.tar.gz
python3: disable user site-pkg for native target
by setting the ENABLE_USER_SITE flag globally. This is the recommended way according to https://peps.python.org/pep-0370/#implementation (From OE-Core rev: 71bf8e9e418af6213de17903f54502b5b1055872) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3_3.10.6.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.10.6.bb b/meta/recipes-devtools/python/python3_3.10.6.bb
index f19cd50273..1b28728732 100644
--- a/meta/recipes-devtools/python/python3_3.10.6.bb
+++ b/meta/recipes-devtools/python/python3_3.10.6.bb
@@ -171,6 +171,9 @@ do_install:append:class-native() {
171 # Nothing should be looking into ${B} for python3-native 171 # Nothing should be looking into ${B} for python3-native
172 sed -i -e 's:${B}:/build/path/unavailable/:g' \ 172 sed -i -e 's:${B}:/build/path/unavailable/:g' \
173 ${D}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}*/Makefile 173 ${D}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}*/Makefile
174
175 # disable the lookup in user's site-packages globally
176 sed -i 's#ENABLE_USER_SITE = None#ENABLE_USER_SITE = False#' ${D}${libdir}/python${PYTHON_MAJMIN}/site.py
174} 177}
175 178
176do_install:append() { 179do_install:append() {