From f9c962c8c799bafbd1c531d6f317bbbaa90aec4f Mon Sep 17 00:00:00 2001 From: Jeremy Kniager Date: Wed, 18 Jul 2018 11:09:49 -0600 Subject: script: Fix fetch_glslangvalidator.py SSL error Changed urllib.request.urlretrieve to urllib.request.urlopen and set to not check SSL Change-Id: Ia4fa57ef698cc2110c9b19f0715d0eacdf9a00e7 --- scripts/fetch_glslangvalidator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/fetch_glslangvalidator.py') diff --git a/scripts/fetch_glslangvalidator.py b/scripts/fetch_glslangvalidator.py index cfee9d1b..5da8a677 100755 --- a/scripts/fetch_glslangvalidator.py +++ b/scripts/fetch_glslangvalidator.py @@ -27,6 +27,8 @@ import sys import os +import shutil +import ssl import subprocess import urllib.request import zipfile @@ -60,7 +62,8 @@ if __name__ == '__main__': sys.stdout.flush() # Download release zip file from glslang github releases site - urllib.request.urlretrieve(GLSLANG_COMPLETE_URL, GLSLANG_OUTFILENAME) + with urllib.request.urlopen(GLSLANG_COMPLETE_URL, context=ssl._create_unverified_context()) as response, open(GLSLANG_OUTFILENAME, 'wb') as out_file: + shutil.copyfileobj(response, out_file) # Unzip the glslang binary archive zipped_file = zipfile.ZipFile(GLSLANG_OUTFILENAME, 'r') namelist = zipped_file.namelist() -- cgit v1.2.3