Skip to content
Snippets Groups Projects
Commit 43fffdbd authored by Berk Onat's avatar Berk Onat
Browse files

Fixed setup.py for tclsh check.

parent b4415d5c
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment