From d638d1cd805203b7fbc18913f371e2103b70e937 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Thu, 1 Nov 2018 15:09:48 +0800 Subject: [PATCH] Fix paddle version test=develop --- 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 b376be0ea37..ee19294ad5c 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: + if len(version_details) >= 3: return version_details[idx] return 0 -- GitLab