Skip to content

Commit

Permalink
get version without importing chumpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Talha Zaman committed Aug 3, 2017
1 parent 350030a commit b5c7aa7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b5c7aa7

Please sign in to comment.