From 998ff1a1abb991d298ad803f33234e51a5eed0c5 Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Tue, 20 Aug 2013 13:01:10 +0300 Subject: [PATCH] fix reading of version in py3 --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 957a5baf..6a77f766 100644 --- a/setup.py +++ b/setup.py @@ -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.')