changeset 4792:9f2e480ad786

py3: make setup.py py3 compatible
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 28 Jun 2019 21:07:20 +0000
parents 395ab63d2af7
children 13c95218bac4
files setup.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():