install.py

changeset 4178
0d882b1e0c11
parent 4173
10336d4d1488
child 4238
53bd830433dc
child 4240
171caaf2dac2
equal deleted inserted replaced
4177:b72888863827 4178:0d882b1e0c11
1126 1126
1127 # check version of sip 1127 # check version of sip
1128 try: 1128 try:
1129 import sip 1129 import sip
1130 sipVersion = sip.SIP_VERSION_STR 1130 sipVersion = sip.SIP_VERSION_STR
1131 print("sip Version: ", sipVersion.strip()) 1131 print("sip Version:", sipVersion.strip())
1132 # always assume, that snapshots are new enough 1132 # always assume, that snapshots are new enough
1133 if "snapshot" not in sipVersion: 1133 if "snapshot" not in sipVersion:
1134 while sipVersion.count('.') < 2: 1134 while sipVersion.count('.') < 2:
1135 sipVersion += '.0' 1135 sipVersion += '.0'
1136 (maj, min, pat) = sipVersion.split('.') 1136 (maj, min, pat) = sipVersion.split('.')
1157 if pyqtVariant == "PyQt4": 1157 if pyqtVariant == "PyQt4":
1158 from PyQt4.QtCore import PYQT_VERSION_STR 1158 from PyQt4.QtCore import PYQT_VERSION_STR
1159 else: 1159 else:
1160 from PyQt5.QtCore import PYQT_VERSION_STR 1160 from PyQt5.QtCore import PYQT_VERSION_STR
1161 pyqtVersion = PYQT_VERSION_STR 1161 pyqtVersion = PYQT_VERSION_STR
1162 print("PyQt Version: ", pyqtVersion.strip()) 1162 print("PyQt Version:", pyqtVersion.strip())
1163 # always assume, that snapshots are new enough 1163 # always assume, that snapshots are new enough
1164 if "snapshot" not in pyqtVersion: 1164 if "snapshot" not in pyqtVersion:
1165 while pyqtVersion.count('.') < 2: 1165 while pyqtVersion.count('.') < 2:
1166 pyqtVersion += '.0' 1166 pyqtVersion += '.0'
1167 (maj, min, pat) = pyqtVersion.split('.') 1167 (maj, min, pat) = pyqtVersion.split('.')
1187 if pyqtVariant == "PyQt4": 1187 if pyqtVariant == "PyQt4":
1188 from PyQt4.Qsci import QSCINTILLA_VERSION_STR 1188 from PyQt4.Qsci import QSCINTILLA_VERSION_STR
1189 else: 1189 else:
1190 from PyQt5.Qsci import QSCINTILLA_VERSION_STR 1190 from PyQt5.Qsci import QSCINTILLA_VERSION_STR
1191 scintillaVersion = QSCINTILLA_VERSION_STR 1191 scintillaVersion = QSCINTILLA_VERSION_STR
1192 print("QScintilla Version: ", QSCINTILLA_VERSION_STR.strip()) 1192 print("QScintilla Version:", QSCINTILLA_VERSION_STR.strip())
1193 # always assume, that snapshots are new enough 1193 # always assume, that snapshots are new enough
1194 if "snapshot" not in scintillaVersion: 1194 if "snapshot" not in scintillaVersion:
1195 while scintillaVersion.count('.') < 2: 1195 while scintillaVersion.count('.') < 2:
1196 scintillaVersion += '.0' 1196 scintillaVersion += '.0'
1197 (maj, min, pat) = scintillaVersion.split('.') 1197 (maj, min, pat) = scintillaVersion.split('.')

eric ide

mercurial