py3: make setup.py py3 compatible
authorLudovic Chabant <ludovic@chabant.com>
Fri, 28 Jun 2019 21:07:20 +0000
changeset 4792 9f2e480ad786
parent 4791 395ab63d2af7
child 4793 13c95218bac4
py3: make setup.py py3 compatible
setup.py
--- a/setup.py	Tue Jul 30 02:55:22 2019 +0200
+++ b/setup.py	Fri Jun 28 21:07:20 2019 +0000
@@ -7,7 +7,8 @@
 def get_metadata():
     meta = {}
     fullpath = join(dirname(__file__), META_PATH)
-    execfile(fullpath, meta)
+    with open(fullpath, 'r') as fp:
+        exec(fp.read(), meta)
     return meta
 
 def get_version():