diff --git a/python/setup.py.in b/python/setup.py.in index a27eb5d58275421e0aeae25c99cc50c809cc0cfc..333c24f341bc3cf49e49a0b49f8c74a4717e02ea 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -27,20 +27,20 @@ def _get_version_detail(idx): return None -def get_minor(): - minor = _get_version_detail(0) - if minor is not None: - return minor - - return MINOR - def get_major(): - major = _get_version_detail(1) + major = _get_version_detail(0) if major is not None: return major return MAJOR +def get_minor(): + minor = _get_version_detail(1) + if minor is not None: + return minor + + return MINOR + def get_patch(): patch = _get_version_detail(2) if patch is not None: