appveyor_install: Don't install old PyQt if unneeded
This commit is contained in:
parent
c28c428051
commit
fd276dabc7
@ -28,6 +28,7 @@ CI machines.
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import os
|
||||||
import time
|
import time
|
||||||
import subprocess
|
import subprocess
|
||||||
import urllib
|
import urllib
|
||||||
@ -44,6 +45,16 @@ def pip_install(pkg):
|
|||||||
pkg])
|
pkg])
|
||||||
|
|
||||||
|
|
||||||
|
print("Installing tox")
|
||||||
|
pip_install('pip')
|
||||||
|
pip_install(r'-rmisc\requirements\requirements-tox.txt')
|
||||||
|
|
||||||
|
print("Linking Python...")
|
||||||
|
with open(r'C:\Windows\system32\python3.bat', 'w') as f:
|
||||||
|
f.write(r'@C:\Python34\python %*')
|
||||||
|
|
||||||
|
|
||||||
|
if '-pyqt' not in os.environ['TESTENV']:
|
||||||
print("Getting PyQt5...")
|
print("Getting PyQt5...")
|
||||||
qt_version = '5.5.1'
|
qt_version = '5.5.1'
|
||||||
pyqt_version = '5.5.1'
|
pyqt_version = '5.5.1'
|
||||||
@ -61,12 +72,4 @@ except (OSError, IOError):
|
|||||||
print("Installing PyQt5...")
|
print("Installing PyQt5...")
|
||||||
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
|
subprocess.check_call([r'C:\install-PyQt5.exe', '/S'])
|
||||||
|
|
||||||
print("Installing tox")
|
|
||||||
pip_install('pip')
|
|
||||||
pip_install(r'-rmisc\requirements\requirements-tox.txt')
|
|
||||||
|
|
||||||
print("Linking Python...")
|
|
||||||
with open(r'C:\Windows\system32\python3.bat', 'w') as f:
|
|
||||||
f.write(r'@C:\Python34\python %*')
|
|
||||||
|
|
||||||
check_setup(r'C:\Python34\python')
|
check_setup(r'C:\Python34\python')
|
||||||
|
Loading…
Reference in New Issue
Block a user