blob: 4bd98f62fd6a8aa4f0151c9435aba858df408870 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From a2dd127b4163aff6cc35af0d0251321964232ad4 Mon Sep 17 00:00:00 2001
Brad Bishopf3f93bb2019-10-16 14:33:32 -04002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 7 Oct 2019 13:22:14 +0200
4Subject: [PATCH] setup.py: do not report missing dependencies for disabled
5 modules
6
7Reporting those missing dependencies is misleading as the modules would not
8have been built anyway. This particularly matters in oe-core's automated
9build completeness checker which relies on the report.
10
11Upstream-Status: Inappropriate [oe-core specific]
12Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Andrew Geissler82c905d2020-04-13 13:39:40 -050013
Brad Bishopf3f93bb2019-10-16 14:33:32 -040014---
15 setup.py | 4 ++++
16 1 file changed, 4 insertions(+)
17
18diff --git a/setup.py b/setup.py
Andrew Geissler82c905d2020-04-13 13:39:40 -050019index 7691258..ec3f2a4 100644
Brad Bishopf3f93bb2019-10-16 14:33:32 -040020--- a/setup.py
21+++ b/setup.py
Andrew Geissler82c905d2020-04-13 13:39:40 -050022@@ -408,6 +408,10 @@ class PyBuildExt(build_ext):
Brad Bishopf3f93bb2019-10-16 14:33:32 -040023 print("%-*s %-*s %-*s" % (longest, e, longest, f,
24 longest, g))
25
26+ # There is no need to report missing module dependencies,
27+ # if the modules have been disabled in the first place.
Andrew Geissler82c905d2020-04-13 13:39:40 -050028+ self.missing = list(set(self.missing) - set(sysconf_dis))
Brad Bishopf3f93bb2019-10-16 14:33:32 -040029+
Andrew Geissler82c905d2020-04-13 13:39:40 -050030 if self.missing:
Brad Bishopf3f93bb2019-10-16 14:33:32 -040031 print()
32 print("Python build finished successfully!")