Files
package_application_recovery/buildroot/package/python/014-abort-on-failed-modules.patch
procount 1ad56ba033 Revert "It now builds on Ubuntu 18.10 'cosmic' as well!"
This reverts commit c43ba77af50d364fe5c6e98cf23bd482fc21fbd5.

Conflicts:
	rebootp/Makefile
2019-07-24 13:21:01 +01:00

22 lines
670 B
Diff

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