From 9620f50d837b7eb6473bcebc7974fcaed60c9eee Mon Sep 17 00:00:00 2001 From: minqiyang Date: Wed, 10 Oct 2018 15:03:01 +0800 Subject: [PATCH] Polish code test=release/1.0.0 --- python/setup.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/setup.py.in b/python/setup.py.in index 6732ce07c..6e439d28a 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -27,7 +27,7 @@ def _get_version_detail(idx): if re.match('@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'): version_details = '@PADDLE_VERSION@'.split('.') - if len(version_details) == 3 or len(version_details) == 4: + if len(version_details) >= 3: return version_details[idx] return 0 -- GitLab