Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

py3k compatibility for setupegg.py.

  • Loading branch information...
commit 7a0e2c441b2c745f64c257003443fbed149665b9 1 parent 29dc2c6
@bfroehle authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 setupegg.py
View
10 setupegg.py
@@ -1,6 +1,14 @@
#!/usr/bin/env python
"""Wrapper to run setup.py using setuptools."""
+# Python 3 compatibility
+try:
+ execfile
+except:
+ def execfile(filename, globals, locals=None):
+ locals = locals or globals
+ exec(compile(open(filename).read(), filename, "exec"), globals, locals)
+
# Import setuptools and call the actual setup
import setuptools
-execfile('setup.py')
+execfile('setup.py', globals())
Please sign in to comment.
Something went wrong with that request. Please try again.