diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch b/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch index 5c620361da..5823273af3 100644 --- a/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch +++ b/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch | |||
@@ -10,6 +10,8 @@ build completeness checker which relies on the report. | |||
10 | 10 | ||
11 | Upstream-Status: Inappropriate [oe-core specific] | 11 | Upstream-Status: Inappropriate [oe-core specific] |
12 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 12 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
14 | Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org> | ||
13 | 15 | ||
14 | --- | 16 | --- |
15 | setup.py | 4 ++++ | 17 | setup.py | 4 ++++ |
@@ -19,13 +21,17 @@ diff --git a/setup.py b/setup.py | |||
19 | index 7691258..ec3f2a4 100644 | 21 | index 7691258..ec3f2a4 100644 |
20 | --- a/setup.py | 22 | --- a/setup.py |
21 | +++ b/setup.py | 23 | +++ b/setup.py |
22 | @@ -408,6 +408,10 @@ class PyBuildExt(build_ext): | 24 | @@ -408,6 +408,14 @@ class PyBuildExt(build_ext): |
23 | print("%-*s %-*s %-*s" % (longest, e, longest, f, | 25 | print("%-*s %-*s %-*s" % (longest, e, longest, f, |
24 | longest, g)) | 26 | longest, g)) |
25 | 27 | ||
26 | + # There is no need to report missing module dependencies, | 28 | + # There is no need to report missing module dependencies, |
27 | + # if the modules have been disabled in the first place. | 29 | + # if the modules have been disabled in the first place. |
28 | + self.missing = list(set(self.missing) - set(mods_disabled)) | 30 | + # cannot use mods_disabled here, because remove_configured_extensions adds |
31 | + # only disabled extensions into it (doesn't cover _dbm, _gdbm, readline | ||
32 | + # we support disabling through PACKAGECONFIG) | ||
33 | + sysconf_dis = sysconfig.get_config_var('MODDISABLED_NAMES').split() | ||
34 | + self.missing = list(set(self.missing) - set(sysconf_dis)) | ||
29 | + | 35 | + |
30 | if self.missing: | 36 | if self.missing: |
31 | print() | 37 | print() |