014-abort-on-failed-modules.patch 670 B

123456789101112131415161718192021
  1. Abort on failed module build
  2. When building a Python module fails, the setup.py script currently
  3. doesn't exit with an error, and simply continues. This is not a really
  4. nice behavior, so this patch changes setup.py to abort with an error,
  5. so that the build issue is clearly noticeable.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Index: b/setup.py
  8. ===================================================================
  9. --- a/setup.py
  10. +++ b/setup.py
  11. @@ -283,6 +283,7 @@
  12. print "Failed to build these modules:"
  13. print_three_column(failed)
  14. print
  15. + sys.exit(1)
  16. def build_extension(self, ext):