diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2016-01-13 22:34:06 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2016-01-13 22:34:06 +0100 |
commit | 76bf87b1f0104bd554f2c5886f9b6c626d20250a (patch) | |
tree | 1c9f49f91d4287fdb27435db29d283a6a9a0936b | |
parent | d2bb5bdc882d091f2b9a2b819b61aba17cc461b7 (diff) | |
parent | 5064ad34ebff347dbd5001c1317fcb838ccd55a8 (diff) | |
download | markupsafe-76bf87b1f0104bd554f2c5886f9b6c626d20250a.tar.gz |
Merge pull request #36 from matthew-brett/fix-osx-compiler-check
Added SystemError as possible compiling error
-rw-r--r-- | setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -21,11 +21,16 @@ speedups = Feature( ], ) +# Known errors when running build_ext.build_extension method ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError) 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 += (IOError,) +# Known errors when running build_ext.run method +run_errors = (DistutilsPlatformError,) +if sys.platform == 'darwin': + run_errors += (SystemError,) class BuildFailed(Exception): @@ -38,7 +43,7 @@ class ve_build_ext(build_ext): def run(self): try: build_ext.run(self) - except DistutilsPlatformError: + except run_errors: raise BuildFailed() def build_extension(self, ext): |