##// END OF EJS Templates
packaging: don't crash building wix with python3.6 and earlier...
Matt Harbison -
r42259:9c07d345 default
parent child Browse files
Show More
@@ -142,11 +142,9 b' import platform; print("%s:%s" % (platfo'
142 def python_exe_info(python_exe: pathlib.Path):
142 def python_exe_info(python_exe: pathlib.Path):
143 """Obtain information about a Python executable."""
143 """Obtain information about a Python executable."""
144
144
145 res = subprocess.run(
145 res = subprocess.check_output([str(python_exe), '-c', PRINT_PYTHON_INFO])
146 [str(python_exe), '-c', PRINT_PYTHON_INFO],
147 capture_output=True, check=True)
148
146
149 arch, version = res.stdout.decode('utf-8').split(':')
147 arch, version = res.decode('utf-8').split(':')
150
148
151 version = distutils.version.LooseVersion(version)
149 version = distutils.version.LooseVersion(version)
152
150
General Comments 0
You need to be logged in to leave comments. Login now