appveyor: Don't patch registry

In newer Appveyor images, only a key for Python 3.5 exists here.
This commit is contained in:
Florian Bruhin 2016-07-15 16:16:02 +02:00
parent d710a98f46
commit 701c2fe7d0

View File

@ -31,11 +31,6 @@ from __future__ import print_function
import subprocess
import urllib
try:
import _winreg as winreg
except ImportError:
winreg = None
def check_setup(executable):
subprocess.check_call([executable, '-c', 'import PyQt5'])
@ -56,12 +51,6 @@ pyqt_url = ('http://www.qutebrowser.org/pyqt/'
pyqt_version, qt_version))
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...")
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])