summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-setuptools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-setuptools')
-rw-r--r--meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig-append-STAGING_LIBDIR-python-sy.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig-append-STAGING_LIBDIR-python-sy.patch b/meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig-append-STAGING_LIBDIR-python-sy.patch
new file mode 100644
index 0000000000..565cf8ae8d
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig-append-STAGING_LIBDIR-python-sy.patch
@@ -0,0 +1,34 @@
1From 44349672cbff8945693c8d2821c82e9f04bfc8b5 Mon Sep 17 00:00:00 2001
2From: Tim Orling <timothy.t.orling@intel.com>
3Date: Wed, 20 Oct 2021 17:38:10 +0000
4Subject: [PATCH] _distutils/sysconfig: append
5 STAGING_LIBDIR/python-sysconfigdata to sys.path
6
7When python modules set SETUPTOOLS_USE_DISTULS='local', this uses the
8vendored _distutils in setuptools rather than distutils in the Standard
9Library. This is needed so that target configuration can be used with
10python3-setuptools-native.
11
12Based on python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch
13from Alex Kanavin <alex.kanavin@gmail.com>
14
15Upstream-Status: Inappropriate [oe-specific]
16
17Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
18---
19 setuptools/_distutils/sysconfig.py | 2 ++
20 1 file changed, 2 insertions(+)
21
22diff --git a/setuptools/_distutils/sysconfig.py b/setuptools/_distutils/sysconfig.py
23index 8832b3e..bbc7c08 100644
24--- a/setuptools/_distutils/sysconfig.py
25+++ b/setuptools/_distutils/sysconfig.py
26@@ -461,6 +461,8 @@ def _init_posix():
27 platform=sys.platform,
28 multiarch=getattr(sys.implementation, '_multiarch', ''),
29 ))
30+ if 'STAGING_LIBDIR' in os.environ:
31+ sys.path.append(os.environ['STAGING_LIBDIR']+'/python-sysconfigdata')
32 try:
33 _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
34 except ImportError: