Catch OSError as can arise when compiler doesn't exist on Windows.

This commit is contained in:
Graham Dumpleton 2017-01-03 16:19:48 +11:00
parent aca7e88fef
commit 0102ba2729
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from distutils.errors import (CCompilerError, DistutilsExecError,
if sys.platform == 'win32':
build_ext_errors = (CCompilerError, DistutilsExecError,
DistutilsPlatformError, IOError)
DistutilsPlatformError, IOError, OSError)
else:
build_ext_errors = (CCompilerError, DistutilsExecError,
DistutilsPlatformError)