diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f744acb833..343c1fbb37 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -44,7 +44,7 @@ jobs: - bash: | git submodule update --init --recursive python -m pip install --upgrade pip - pip install git+https://github.com/Czaki/cibuildwheel.git@macos_certif + pip install cibuildwheel cibuildwheel --output-dir wheelhouse . - task: PublishPipelineArtifact@1 inputs: @@ -57,7 +57,7 @@ jobs: - bash: | git submodule update --init --recursive python -m pip install --upgrade pip - pip install git+https://github.com/Czaki/cibuildwheel.git@macos_certif + pip install cibuildwheel MACOSX_DEPLOYMENT_TARGET="10.14" cibuildwheel --output-dir wheelhouse . - task: PublishPipelineArtifact@1 inputs: diff --git a/vispy/util/fetching.py b/vispy/util/fetching.py index 9c34933e95..414abe5356 100644 --- a/vispy/util/fetching.py +++ b/vispy/util/fetching.py @@ -12,6 +12,7 @@ import shutil import time +import ssl import urllib.request from ..util.config import config @@ -236,7 +237,8 @@ def _fetch_file(url, file_name, print_destination=True): n_try = 3 for ii in range(n_try): try: - data = urllib.request.urlopen(url, timeout=15.) + context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) + data = urllib.request.urlopen(url, timeout=15., context=context) except Exception as e: if ii == n_try - 1: raise RuntimeError('Error while fetching file %s.\n'