Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improves version reporting

  • Loading branch information...
commit 4547ce6ea5c8ede8a09c50752966ee26fbd06323 1 parent a0495af
@ddale ddale authored
Showing with 9 additions and 1 deletion.
  1. +2 −0  hexrd/__init__.py
  2. +7 −1 setup.py
View
2  hexrd/__init__.py
@@ -24,3 +24,5 @@
# the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA or visit <http://www.gnu.org/licenses/>.
# ============================================================
+
+__version__ = '0.0.0'
View
8 setup.py
@@ -45,9 +45,15 @@
else:
del(dirnames[:])
+with open('hexrd/__init__.py') as f:
+ for line in f:
+ if line[:11] == '__version__':
+ exec(line)
+ break
+
setup(
name = 'hexrd',
- version = '0.0.0',
+ version = __version__,
author = 'Joel Bernier, et al.',
author_email = 'bernier2@llnl.gov',
description = 'High energy diffraction microscopy',
Please sign in to comment.
Something went wrong with that request. Please try again.