Skip to content
Snippets Groups Projects
Commit 2635eaf21063 authored by Bob Ippolito's avatar Bob Ippolito
Browse files

apply 26_win32_setup.diff from pjenvey

git-svn-id: http://simplejson.googlecode.com/svn/trunk@155 a4795897-2c25-0410-b006-0d3caba88fa1
parent 5c80279fca69
Branches
No related tags found
No related merge requests found
......@@ -54,6 +54,14 @@
],
)
if sys.platform == 'win32' and sys.version_info > (2, 6):
# 2.6's distutils.msvc9compiler can raise an IOError when failing to
# find the compiler
ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError,
IOError)
else:
ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)
class BuildFailed(Exception):
pass
......@@ -69,7 +77,7 @@
def build_extension(self, ext):
try:
build_ext.build_extension(self, ext)
except (CCompilerError, DistutilsExecError), x:
except ext_errors, x:
raise BuildFailed()
def run_setup(with_binary):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment