From aa600e70d9659738d143af190a585423b98d3e66 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Wed, 20 Oct 2021 18:57:24 +0000 Subject: python3-setuptools: _distutils/sysconfig fix Add patch to append STAGING_LIBDIR python-sysconfigdata to sys.path so that packages which set SETUPTOOLS_USE_DISUTILS='local' cross-compile properly with python3-setuptools-native. Fixes: ModuleNotFoundError: No module named '_sysconfigdata' References: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#porting-from-distutils (From OE-Core rev: f6fb99c53f779966fc902a629d0a8bbd9f84c6be) Signed-off-by: Tim Orling Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python3-setuptools_58.2.0.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools/python/python3-setuptools_58.2.0.bb') diff --git a/meta/recipes-devtools/python/python3-setuptools_58.2.0.bb b/meta/recipes-devtools/python/python3-setuptools_58.2.0.bb index 0a05ac6079..b37c44854c 100644 --- a/meta/recipes-devtools/python/python3-setuptools_58.2.0.bb +++ b/meta/recipes-devtools/python/python3-setuptools_58.2.0.bb @@ -8,7 +8,10 @@ inherit pypi setuptools3 SRC_URI:append:class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" -SRC_URI += "file://0001-change-shebang-to-python3.patch" +SRC_URI += "\ + file://0001-change-shebang-to-python3.patch \ + file://0001-_distutils-sysconfig-append-STAGING_LIBDIR-python-sy.patch \ +" SRC_URI[sha256sum] = "2c55bdb85d5bb460bd2e3b12052b677879cffcf46c0c688f2e5bf51d36001145" -- cgit v1.2.3-54-g00ecf