File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 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):
6666 shutil .move (dirname , rename_to )
6767
6868def get_tool (tool ):
69+ sys_name = platform .system ()
6970 archive_name = tool ['archiveFileName' ]
7071 local_path = dist_dir + archive_name
7172 url = tool ['url' ]
7273 #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
7678 if not os .path .isfile (local_path ):
7779 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 )
7984 sys .stdout .write ("\r Done\n " )
8085 sys .stdout .flush ()
8186 else :
You can’t perform that action at this time.
0 commit comments