Commit 665e0420 authored by Stefan Behnel's avatar Stefan Behnel

suppress compiler crashes in cythonize() trial&error mode

parent f230a861
...@@ -718,6 +718,12 @@ def cythonize_one(pyx_file, c_file, fingerprint, quiet, options=None, raise_on_f ...@@ -718,6 +718,12 @@ def cythonize_one(pyx_file, c_file, fingerprint, quiet, options=None, raise_on_f
except (EnvironmentError, PyrexError), e: except (EnvironmentError, PyrexError), e:
sys.stderr.write('%s\n' % e) sys.stderr.write('%s\n' % e)
any_failures = 1 any_failures = 1
except Exception:
if raise_on_failure:
raise
import traceback
traceback.print_exc()
any_failures = 1
if any_failures and raise_on_failure: if any_failures and raise_on_failure:
raise CompileError(None, pyx_file) raise CompileError(None, pyx_file)
if fingerprint and not any_failures: if fingerprint and not any_failures:
......
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