0012-Abort-on-failed-module-build.patch 925 B

123456789101112131415161718192021222324252627282930
  1. From a131e2ff219872d97eef6585117bd2f8ff9e310d Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Tue, 7 Mar 2017 22:24:48 +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 0b9ea57..9a5c2b8 100644
  15. --- a/setup.py
  16. +++ b/setup.py
  17. @@ -299,6 +299,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.7.4