when installing the LAMMPS python package create a valid version id

This commit is contained in:
Axel Kohlmeyer
2021-04-12 10:51:44 -04:00
parent 38d5798223
commit c324d754a0
2 changed files with 6 additions and 4 deletions

View File

@ -38,7 +38,7 @@ def get_version_number():
if not vstring:
return 0
t = time.strptime(vstring, "%d%b%Y")
t = time.strptime(vstring, "%Y.%m.%d")
return t.tm_year*10000 + t.tm_mon*100 + t.tm_mday
__version__ = get_version_number()