015-abort-on-failed-modules.patch 385 B

123456789101112
  1. diff --git a/setup.py b/setup.py
  2. index da67731..928e0de 100644
  3. --- a/setup.py
  4. +++ b/setup.py
  5. @@ -293,6 +293,7 @@ class PyBuildExt(build_ext):
  6. print("Failed to build these modules:")
  7. print_three_column(failed)
  8. print()
  9. + if cross_compiling: sys.exit(1)
  10. if self.failed_on_import:
  11. failed = self.failed_on_import[:]