Throw all warnings from git describe in setup.py.in

Convert all values to string
guochaorong-patch-1
minqiyang 7 years ago
parent be2d9dc2b8
commit a685566cd5

@ -42,12 +42,12 @@ def get_patch():
def is_taged():
try:
cmd = ['git', 'describe', '--exact-match', '--tags']
cmd = ['git', 'describe', '--exact-match', '--tags', 'HEAD', '2>/dev/null']
git_tag = subprocess.Popen(cmd, stdout = subprocess.PIPE).communicate()[0].strip()
except:
return False
if git_tag.replace('v', '') == '@PADDLE_VERSION@':
if str(git_tag).replace('v', '') == '@PADDLE_VERSION@':
return True
else:
return False

Loading…
Cancel
Save