Skip to content

Commit a5460e8

Browse files
committed
include versionate.py in dist
1 parent be1ca11 commit a5460e8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include versionate.py
12
include pypop/version
23
recursive-include pypop/examples *
34
recursive-include pypop/cfgs *

versionate.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ def versionate():
4141

4242
ver_string = get_git_verstring()
4343

44+
if ver_string == _k_unknown_ver:
45+
try:
46+
with open('pypop/version', 'rt') as fh:
47+
ver_string = fh.readlines()[0].strip()
48+
except:
49+
pass
50+
finally:
51+
return ver_string
52+
4453
with open('pypop/version', 'wt') as fh:
4554
fh.write(ver_string)
4655

0 commit comments

Comments
 (0)