Commit 98349dbd authored by Zeno Albisser's avatar Zeno Albisser Committed by Andras Becsi
Browse files

Print only major.minor.micro version of python.


This will avoid printing the compiler version python was built with.
Showing the compiler version led to confusion multiple times.

Change-Id: I4ced2128b92c83a41f616bcf756f2c313a9caed3
Reviewed-by: default avatarAndras Becsi <andras.becsi@theqtcompany.com>
Showing with 1 addition and 1 deletion
...@@ -5,7 +5,7 @@ import os ...@@ -5,7 +5,7 @@ import os
import sys import sys
import subprocess import subprocess
print 'using python: ' + sys.executable + ' version: ' + sys.version print 'using python: ' + sys.executable + ' version: ' + str(sys.version_info.major) + '.' + str(sys.version_info.minor) + '.' + str(sys.version_info.micro)
if sys.platform == "darwin": if sys.platform == "darwin":
print 'xcode version: ' + subprocess.check_output(['xcodebuild', '-version']).replace('\n', ' ') print 'xcode version: ' + subprocess.check_output(['xcodebuild', '-version']).replace('\n', ' ')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment