Skip to content

Commit f9c98ba

Browse files
committed
fix: version compilation
1 parent f884f84 commit f9c98ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/info.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
_version_major = 0
1111
_version_minor = 11
1212
_version_micro = 0
13-
_version_extra = ''
13+
_version_extra = '' # switch to -dev for non release
1414

1515
def get_nipype_gitversion():
1616
"""Nipype version as reported by the last commit in git
@@ -41,13 +41,13 @@ def get_nipype_gitversion():
4141
ver = o.strip().split('-')[-1]
4242
return ver
4343

44-
if 'dev' in _version_extra:
44+
if '-dev' in _version_extra:
4545
gitversion = get_nipype_gitversion()
4646
if gitversion:
47-
_version_extra = gitversion + '.dev'
47+
_version_extra = '-' + gitversion + '.dev'
4848

4949
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
50-
__version__ = "%s.%s.%s-%s" % (_version_major,
50+
__version__ = "%s.%s.%s%s" % (_version_major,
5151
_version_minor,
5252
_version_micro,
5353
_version_extra)

0 commit comments

Comments
 (0)