aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fetch_glslangvalidator.py5
1 files changed, 4 insertions, 1 deletions
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()