appveyor: Try to re-download PyQt on failure
This commit is contained in:
parent
c421f44f4e
commit
81ad3bdcdc
@ -28,6 +28,7 @@ CI machines.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import time
|
||||
import subprocess
|
||||
import urllib
|
||||
|
||||
@ -49,7 +50,13 @@ pyqt_version = '5.5.1'
|
||||
pyqt_url = ('http://www.qutebrowser.org/pyqt/'
|
||||
'PyQt5-{}-gpl-Py3.4-Qt{}-x32.exe'.format(
|
||||
pyqt_version, qt_version))
|
||||
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
|
||||
|
||||
try:
|
||||
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
|
||||
except OSError:
|
||||
print("Downloading PyQt failed, trying again in 10 seconds...")
|
||||
time.sleep(10)
|
||||
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
|
||||
|
||||
print("Installing PyQt5...")
|
||||
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
|
||||
|
Loading…
Reference in New Issue
Block a user