Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlei committed May 22, 2018
1 parent 12ae0ab commit 9a34ba8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import os
from setuptools import setup

from smop.version import __version__ as __VERSION__
try:
__VERSION__ = os.popen("git describe --tags").read().strip()
except OSError as e:
__VERSION__ = ""

open("version.py","w").write("smop/__version__='%s'" % __VERSION__)
#from smop.version import __version__ as __VERSION__

setup(
author = 'Victor Leikehman',
Expand Down
1 change: 1 addition & 0 deletions smop/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
def print_header(fp):
if options.no_header:
return
print("# Running Python %s" % sys.version, file=fp)
print("# Generated with SMOP ", __version__, file=fp)
print("from libsmop import *", file=fp)
print("#", options.filename, file=fp)
Expand Down
1 change: 0 additions & 1 deletion smop/version.py

This file was deleted.

0 comments on commit 9a34ba8

Please sign in to comment.