prevent exception on python3 caused by platform.architecture implementation
@@ -387,8 +387,11 @@ def _is_runnable(full_path, build_config=None):
"""
if not full_path:
return False
+ try:
if platform.architecture(full_path)[0] != platform.architecture(sys.executable)[0]:
return False
+ except Exception:
+ pass
# if a build config is set then we will check for file format
if build_config:
