0007-Abort-on-failed-module-build.patch 979 B

123456789101112131415161718192021222324252627282930
  1. From 188c0ebfdb71f5252fa7701013b8d1209f28aef7 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 e27620035c..d3f0e663f2 100644
  15. --- a/setup.py
  16. +++ b/setup.py
  17. @@ -539,6 +539,7 @@ class PyBuildExt(build_ext):
  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.25.1