Skip to content

Commit

Permalink
Merge pull request #13803 from velconia/10_version
Browse files Browse the repository at this point in the history
Fix paddle version
  • Loading branch information
panyx0718 authored Oct 10, 2018
2 parents c548ce7 + 9620f50 commit b85ac93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b85ac93

Please sign in to comment.