diff options
author | Alexander Artemenko <svetlyak.40wt@gmail.com> | 2012-10-15 19:44:13 +0000 |
---|---|---|
committer | Alexander Artemenko <svetlyak.40wt@gmail.com> | 2012-10-15 19:44:13 +0000 |
commit | 92fc2fc7dc8eaf2105e07dd01586f883f3911837 (patch) | |
tree | b9f35a7bbadbe2c42eff0b1255df1811f463afe8 | |
parent | 547dc32bba8911fb0976a117566079bcd66076d7 (diff) | |
download | times-92fc2fc7dc8eaf2105e07dd01586f883f3911837.tar.gz |
Fixes setup.py for python3.
Python3 requires explicit globals dictionary to be passed to `exec`
function.
-rw-r--r-- | setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,9 +6,9 @@ from setuptools import setup def get_version(): basedir = os.path.dirname(__file__) with open(os.path.join(basedir, 'times/version.py')) as f: - VERSION = None - exec(f.read()) - return VERSION + variables = {} + exec(f.read(), variables) + return variables.get('VERSION') raise RuntimeError('No version info found.') |