From 68e58ff814bb6e454cfbee94089ed2f009a1f672 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Wed, 10 Oct 2018 14:54:06 +0800 Subject: [PATCH] Fix paddle version 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 786c9f2e3..6732ce07c 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 or len(version_details) == 4: return version_details[idx] return 0 -- GitLab