diff options
-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.') |