Skip to content

Commit

Permalink
display version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Sep 25, 2019
1 parent 2c4df8a commit 70c5398
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions deepmd/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = 'unknown'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
setup(
name="deepmd-kit",
setup_requires=setup_requires,
use_scm_version={'write_to': 'source/train/_version.py'},
use_scm_version={'write_to': 'deepmd/_version.py'},
author="Han Wang",
author_email="[email protected]",
description="A deep learning package for many-body potential energy representation and molecular dynamics",
Expand Down
5 changes: 5 additions & 0 deletions source/train/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@

set_mkl()

try:
from ._version import version as __version__
except ImportError:
from .__about__ import __version__

0 comments on commit 70c5398

Please sign in to comment.