##// END OF EJS Templates
Mock the new module API on <38 and ignore second argument....
Mock the new module API on <38 and ignore second argument. As ast.Module is used only in interactiveshell the mock is only a small lambda function but would need to grow into a proper shim if used more widely.

File last commit:

r13387:3b4dba0a
r24921:27bd6540
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'))