From 9e7bc94aabf9fc1096b69a1bd0638459e355d75b Mon Sep 17 00:00:00 2001 From: Will Date: Fri, 8 Jun 2018 21:48:03 -0400 Subject: [PATCH] Catch another error on windows compiler failure (#1830) --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 35343c4de..a099b5890 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,8 @@ from distutils.core import setup from distutils import ccompiler -from distutils.errors import CCompilerError +from distutils.errors import CCompilerError, DistutilsPlatformError from pathlib import Path import re -import importlib import tempfile import os @@ -34,7 +33,7 @@ def check_compiler_available(): tfile.seek(0) try: m.compile([tfile.name]) - except CCompilerError: + except (CCompilerError, DistutilsPlatformError): return False return True