Add SystemError to errors from compilation

OSX generates a SystemError from a missing compiler; trap with other
compilation errors.
This commit is contained in:
Matthew Brett 2014-04-08 11:23:21 -07:00
parent 3c66b6a588
commit 5347ae21bd
1 changed files with 2 additions and 1 deletions

View File

@ -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.