File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,21 @@ def unpack(filename, destination):
66
66
shutil .move (dirname , rename_to )
67
67
68
68
def get_tool (tool ):
69
+ sys_name = platform .system ()
69
70
archive_name = tool ['archiveFileName' ]
70
71
local_path = dist_dir + archive_name
71
72
url = tool ['url' ]
72
73
#real_hash = tool['checksum'].split(':')[1]
73
- ctx = ssl .create_default_context ()
74
- ctx .check_hostname = False
75
- ctx .verify_mode = ssl .CERT_NONE
74
+ if 'CYGWIN_NT' in sys_name :
75
+ ctx = ssl .create_default_context ()
76
+ ctx .check_hostname = False
77
+ ctx .verify_mode = ssl .CERT_NONE
76
78
if not os .path .isfile (local_path ):
77
79
print ('Downloading ' + archive_name );
78
- urlretrieve (url , local_path , report_progress ,context = ctx )
80
+ if 'CYGWIN_NT' in sys_name :
81
+ urlretrieve (url , local_path , report_progress ,context = ctx )
82
+ else :
83
+ urlretrieve (url , local_path , report_progress )
79
84
sys .stdout .write ("\r Done\n " )
80
85
sys .stdout .flush ()
81
86
else :
You can’t perform that action at this time.
0 commit comments