Skip to content

Commit

Permalink
Merge pull request #198 from delta2323/remove-imp
Browse files Browse the repository at this point in the history
Retrieve version number in setup.py without imp
  • Loading branch information
mottodora committed Jun 26, 2018
2 parents 9e0f4a9 + 2412511 commit b524e4f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from distutils.core import setup
import imp
import os

from setuptools import find_packages
Expand All @@ -15,12 +14,11 @@


here = os.path.abspath(os.path.dirname(__file__))
__version__ = imp.load_source(
'_version', os.path.join(here,
'chainer_chemistry', '_version.py')).__version__
# Get __version__ variable
exec(open(os.path.join(here, 'chainer_chemistry', '_version.py')).read())

setup(name='chainer-chemistry',
version=__version__,
version=__version__, # NOQA
description='Chainer Chemistry: A Library for Deep Learning in Biology\
and Chemistry',
author='Kosuke Nakago',
Expand Down

0 comments on commit b524e4f

Please sign in to comment.