Merge pull request #12105 from velconia/fix_is_taged

Throw all warnings from git describe in setup.py.in
guochaorong-patch-1
Qiyang Min 7 years ago committed by GitHub
commit a376efb3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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