##// END OF EJS Templates
Allow InputTransformers to raise SyntaxErrors...
Allow InputTransformers to raise SyntaxErrors This is a relatively trivial modification of the IPython main loop to catch a possible SyntaxError and print it instead of quitting. Doctesting this change is somewhat tricky since we actually need to run the main TerminalInteractiveShell.interact() loop, and is done through a subprocess and piping in a testcase.

File last commit:

r13387:3b4dba0a
r13522:ccd47251
Show More
setupegg.py
7 lines | 217 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Wrapper to run setup.py using setuptools."""
# Import setuptools and call the actual setup
import setuptools
with open('setup.py', 'rb') as f:
exec(compile(f.read(), 'setup.py', 'exec'))