From 3b4dba0a8b52fb1bcaeb8f454025561f7a99909f 2013-10-29 16:15:56 From: Thomas Kluyver Date: 2013-10-29 16:15:56 Subject: [PATCH] Don't use execfile in setupegg.py --- diff --git a/setupegg.py b/setupegg.py index d9c31b9..7b4b568 100755 --- a/setupegg.py +++ b/setupegg.py @@ -3,4 +3,5 @@ # Import setuptools and call the actual setup import setuptools -execfile('setup.py') +with open('setup.py', 'rb') as f: + exec(compile(f.read(), 'setup.py', 'exec'))