0006-Abort-on-failed-module-build.patch 981 B

123456789101112131415161718192021222324252627282930
  1. From 60b62c7e2c1fca4dcaf288f747376bfde111283b Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Wed, 23 Dec 2015 11:43:24 +0100
  4. Subject: [PATCH] Abort on failed module build
  5. When building a Python module fails, the setup.py script currently
  6. doesn't exit with an error, and simply continues. This is not a really
  7. nice behavior, so this patch changes setup.py to abort with an error,
  8. so that the build issue is clearly noticeable.
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. ---
  11. setup.py | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/setup.py b/setup.py
  14. index 585dd43828d..53b066cb18b 100644
  15. --- a/setup.py
  16. +++ b/setup.py
  17. @@ -580,6 +580,7 @@ def print_three_column(lst):
  18. print("Failed to build these modules:")
  19. print_three_column(failed)
  20. print()
  21. + sys.exit(1)
  22. if self.failed_on_import:
  23. failed = self.failed_on_import[:]
  24. --
  25. 2.44.0