Skip to content

Commit c23349e

Browse files
committed
Fixes to setup.py
Use exec(open()) instead of execfile() to read in the version script. It should now work on all versions of python.
1 parent 407030a commit c23349e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
pass
1010

1111
# Version Information
12-
execfile('eve_mongoengine/__version__.py')
12+
# (Using 'execfile' is not version safe)
13+
exec(open('eve_mongoengine/__version__.py').read())
1314
VERSION = get_version()
1415

1516
extra_opts = dict()

0 commit comments

Comments
 (0)