Commit 43fffdbd authored by Berk Onat's avatar Berk Onat

Fixed setup.py for tclsh check.

parent b4415d5c
......@@ -91,8 +91,8 @@ class BuildExtWithoutPlatformSuffix(build_ext):
return get_ext_filename_without_platform_suffix(filename)
def check_tcl_version():
output = subprocess.check_output("echo \"puts \$tcl_version;exit 0\" | tclsh", shell=True)
try:
output = subprocess.check_output("echo \"puts \$tcl_version;exit 0\" | tclsh", shell=True)
val = float(output)
except (TypeError,ValueError):
val = None
......
Markdown is supported
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