install.py

changeset 615
c8dd16cc69ce
parent 565
21191e634b47
child 620
f544fadde423
equal deleted inserted replaced
614:c873699a1181 615:c8dd16cc69ce
833 print("\nInstalling eric5 ...") 833 print("\nInstalling eric5 ...")
834 installEric() 834 installEric()
835 print("\nInstallation complete.") 835 print("\nInstallation complete.")
836 print() 836 print()
837 837
838 # check PyXML version and output a message for broken PyXML (< 0.8.6)
839 try:
840 import _xmlplus
841 v = _xmlplus.version_info
842 if v < (0, 8, 6):
843 from eric5.patch_pyxml import isPatched, patchPyXML
844 if not isPatched():
845 print("NOTE:")
846 print(" Found PyXML {0:d}.{1:d}.{2:d}, which needs a patch "
847 "to work correctly".format(v[0], v[1], v[2]))
848 print(" with foreign characters. Please see 'README-PyXML.txt' for")
849 print(" details.")
850 res = input(" Shall pyXML be patched now (y/n)? ")
851 if res in ["Y", "y"]:
852 patchPyXML()
853 except ImportError:
854 pass
855
856 #check version of PyQt 838 #check version of PyQt
857 from PyQt4.QtCore import PYQT_VERSION_STR 839 from PyQt4.QtCore import PYQT_VERSION_STR
858 pyqtVersion = PYQT_VERSION_STR 840 pyqtVersion = PYQT_VERSION_STR
859 # always assume, that snapshots are new enough 841 # always assume, that snapshots are new enough
860 if pyqtVersion.find("snapshot-") == -1: 842 if pyqtVersion.find("snapshot-") == -1:

eric ide

mercurial