From 5347ae21bd8d8548a2789b8beb635f906ae7493d Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Tue, 8 Apr 2014 11:23:21 -0700 Subject: [PATCH] Add SystemError to errors from compilation OSX generates a SystemError from a missing compiler; trap with other compilation errors. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 44e2ed36..0630987b 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,8 @@ if sys.platform == 'win32' and sys.version_info > (2, 6): build_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError, IOError) else: - build_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError) + build_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError, + SystemError) class custom_build_ext(build_ext): """Allow C extension building to fail.