install.py

branch
6_1_x
changeset 4890
314deb5a1316
parent 4851
1ac86f824f49
child 4912
d20551adffb1
equal deleted inserted replaced
4888:41a9707c9a5f 4890:314deb5a1316
1164 # check version of sip 1164 # check version of sip
1165 try: 1165 try:
1166 import sip 1166 import sip
1167 sipVersion = sip.SIP_VERSION_STR 1167 sipVersion = sip.SIP_VERSION_STR
1168 print("sip Version:", sipVersion.strip()) 1168 print("sip Version:", sipVersion.strip())
1169 # always assume, that snapshots are new enough 1169 # always assume, that snapshots or dev versions are new enough
1170 if "snapshot" not in sipVersion: 1170 if "snapshot" not in sipVersion and "dev" not in sipVersion:
1171 while sipVersion.count('.') < 2: 1171 while sipVersion.count('.') < 2:
1172 sipVersion += '.0' 1172 sipVersion += '.0'
1173 (maj, min, pat) = sipVersion.split('.') 1173 (maj, min, pat) = sipVersion.split('.')
1174 maj = int(maj) 1174 maj = int(maj)
1175 min = int(min) 1175 min = int(min)
1195 from PyQt4.QtCore import PYQT_VERSION_STR 1195 from PyQt4.QtCore import PYQT_VERSION_STR
1196 else: 1196 else:
1197 from PyQt5.QtCore import PYQT_VERSION_STR 1197 from PyQt5.QtCore import PYQT_VERSION_STR
1198 pyqtVersion = PYQT_VERSION_STR 1198 pyqtVersion = PYQT_VERSION_STR
1199 print("PyQt Version:", pyqtVersion.strip()) 1199 print("PyQt Version:", pyqtVersion.strip())
1200 # always assume, that snapshots are new enough 1200 # always assume, that snapshots or dev versions are new enough
1201 if "snapshot" not in pyqtVersion: 1201 if "snapshot" not in pyqtVersion and "dev" not in pyqtVersion:
1202 while pyqtVersion.count('.') < 2: 1202 while pyqtVersion.count('.') < 2:
1203 pyqtVersion += '.0' 1203 pyqtVersion += '.0'
1204 (maj, min, pat) = pyqtVersion.split('.') 1204 (maj, min, pat) = pyqtVersion.split('.')
1205 maj = int(maj) 1205 maj = int(maj)
1206 min = int(min) 1206 min = int(min)
1225 from PyQt4.Qsci import QSCINTILLA_VERSION_STR 1225 from PyQt4.Qsci import QSCINTILLA_VERSION_STR
1226 else: 1226 else:
1227 from PyQt5.Qsci import QSCINTILLA_VERSION_STR 1227 from PyQt5.Qsci import QSCINTILLA_VERSION_STR
1228 scintillaVersion = QSCINTILLA_VERSION_STR 1228 scintillaVersion = QSCINTILLA_VERSION_STR
1229 print("QScintilla Version:", QSCINTILLA_VERSION_STR.strip()) 1229 print("QScintilla Version:", QSCINTILLA_VERSION_STR.strip())
1230 # always assume, that snapshots are new enough 1230 # always assume, that snapshots or dev versions are new enough
1231 if "snapshot" not in scintillaVersion: 1231 if "snapshot" not in scintillaVersion and "dev" not in scintillaVersion:
1232 while scintillaVersion.count('.') < 2: 1232 while scintillaVersion.count('.') < 2:
1233 scintillaVersion += '.0' 1233 scintillaVersion += '.0'
1234 (maj, min, pat) = scintillaVersion.split('.') 1234 (maj, min, pat) = scintillaVersion.split('.')
1235 maj = int(maj) 1235 maj = int(maj)
1236 min = int(min) 1236 min = int(min)

eric ide

mercurial