##// END OF EJS Templates
Fix Python 3 handling of urllib...
Fix Python 3 handling of urllib Added try/except blocks to properly import moved methods in the urllib and urllib2 modules. This would break things including `%load`ing scripts by url and installing a local copy of MathJax.

File last commit:

r13387:3b4dba0a
r13640:18bbdacf
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'))