Commit aa41a7a5 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #1119 from segevfiner/patch-1

Fix exception on mingw built Python 2
parents d548901f 20d6c6c2
......@@ -45,9 +45,18 @@ else:
safe_env = dict()
_msvc9_suppress_errors = (
# msvc9compiler isn't available on some platforms
ImportError,
# msvc9compiler raises DistutilsPlatformError in some
# environments. See #1118.
distutils.errors.DistutilsPlatformError,
)
try:
from distutils.msvc9compiler import Reg
except ImportError:
except _msvc9_suppress_errors:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment