0010-Abort-on-failed-module-build.patch 929 B

123456789101112131415161718192021222324252627282930
  1. From 420e08fc9e77b650d11ce420f85257ce1710b70d 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 eab709e..86758ce 100644
  15. --- a/setup.py
  16. +++ b/setup.py
  17. @@ -284,6 +284,7 @@ class PyBuildExt(build_ext):
  18. print("Failed to build these modules:")
  19. print_three_column(failed)
  20. print()
  21. + sys.exit(1)
  22. def build_extension(self, ext):
  23. --
  24. 2.6.4