Merge pull request #245 from mgax/py3-version

fix reading of version in py3
This commit is contained in:
Vincent Driessen 2013-08-20 03:04:19 -07:00
commit b9be8f31a9
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ from setuptools import setup, find_packages
def get_version():
basedir = os.path.dirname(__file__)
with open(os.path.join(basedir, 'rq/version.py')) as f:
VERSION = None
exec(f.read())
return VERSION
locals = {}
exec(f.read(), locals)
return locals['VERSION']
raise RuntimeError('No version info found.')