From b5c7aa7e36ed8987722f5f5dbe4ae051e893fdfc Mon Sep 17 00:00:00 2001 From: Talha Zaman Date: Thu, 3 Aug 2017 16:34:30 +0200 Subject: [PATCH] get version without importing chumpy --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 527b7b1..6e20eca 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,13 @@ install_reqs = parse_requirements('requirements.txt', session=False) install_requires = [str(ir.req) for ir in install_reqs] +def get_version(): + namespace = {} + execfile('chumpy/version.py', namespace) + return namespace['version'] + setup(name='chumpy', - version=importlib.import_module('chumpy').__version__, + version=get_version(), packages = ['chumpy'], author='Matthew Loper', author_email='matt.loper@gmail.com',