appveyor: Don't patch registry
In newer Appveyor images, only a key for Python 3.5 exists here.
This commit is contained in:
parent
d710a98f46
commit
701c2fe7d0
@ -31,11 +31,6 @@ from __future__ import print_function
|
|||||||
import subprocess
|
import subprocess
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
try:
|
|
||||||
import _winreg as winreg
|
|
||||||
except ImportError:
|
|
||||||
winreg = None
|
|
||||||
|
|
||||||
|
|
||||||
def check_setup(executable):
|
def check_setup(executable):
|
||||||
subprocess.check_call([executable, '-c', 'import PyQt5'])
|
subprocess.check_call([executable, '-c', 'import PyQt5'])
|
||||||
@ -56,12 +51,6 @@ pyqt_url = ('http://www.qutebrowser.org/pyqt/'
|
|||||||
pyqt_version, qt_version))
|
pyqt_version, qt_version))
|
||||||
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
|
urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')
|
||||||
|
|
||||||
print("Fixing registry...")
|
|
||||||
with winreg.OpenKey(winreg.HKEY_CURRENT_USER,
|
|
||||||
r'Software\Python\PythonCore\3.4', 0,
|
|
||||||
winreg.KEY_WRITE) as key:
|
|
||||||
winreg.SetValue(key, 'InstallPath', winreg.REG_SZ, r'C:\Python34')
|
|
||||||
|
|
||||||
print("Installing PyQt5...")
|
print("Installing PyQt5...")
|
||||||
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
|
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user