From 9ea8b7ba2144e4c3d007a1a5a1ceecbe16b87bd7 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Tue, 3 Jul 2018 14:46:01 +0800 Subject: [PATCH] Change the default return value of version from 0 to UNKNOWN --- python/setup.py.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/setup.py.in b/python/setup.py.in index e6170a574aa..f10ff853ee9 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -33,21 +33,21 @@ def get_major(): if major is not None: return major - return 0 + return 'UNKNOWN' def get_minor(): minor = _get_version_detail(1) if minor is not None: return minor - return 0 + return 'UNKNOWN' def get_patch(): patch = _get_version_detail(2) if patch is not None: return patch - return 0 + return 'UNKNOWN' def is_taged(): try: -- GitLab