install.py

changeset 3034
7ce719013078
parent 3022
57179e4cdadd
child 3036
30c81c9e88b8
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
97 print("Usage:") 97 print("Usage:")
98 if sys.platform == "darwin": 98 if sys.platform == "darwin":
99 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]" 99 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]"
100 " [-m name] [-p python]".format(progName)) 100 " [-m name] [-p python]".format(progName))
101 elif sys.platform.startswith("win"): 101 elif sys.platform.startswith("win"):
102 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file]"\ 102 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file]"
103 .format(progName)) 103 .format(progName))
104 else: 104 else:
105 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]"\ 105 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]"
106 .format(progName)) 106 .format(progName))
107 print("where:") 107 print("where:")
108 print(" -h display this help message") 108 print(" -h display this help message")
109 print(" -a dir where the API files will be installed") 109 print(" -a dir where the API files will be installed")
110 if apisDir: 110 if apisDir:
921 (maj, min, pat) = pyqtVersion.split('.') 921 (maj, min, pat) = pyqtVersion.split('.')
922 maj = int(maj) 922 maj = int(maj)
923 min = int(min) 923 min = int(min)
924 pat = int(pat) 924 pat = int(pat)
925 if maj < 4 or (maj == 4 and min < 8): 925 if maj < 4 or (maj == 4 and min < 8):
926 print('Sorry, you must have PyQt 4.8.0 or higher or' \ 926 print('Sorry, you must have PyQt 4.8.0 or higher or'
927 ' a recent snapshot release.') 927 ' a recent snapshot release.')
928 exit(4) 928 exit(4)
929 # check for blacklisted versions 929 # check for blacklisted versions
930 for vers in BlackLists["PyQt4"] + PlatformBlackLists["PyQt4"]: 930 for vers in BlackLists["PyQt4"] + PlatformBlackLists["PyQt4"]:
931 if vers == pyqtVersion: 931 if vers == pyqtVersion:
932 print('Sorry, PyQt4 version {0} is not compatible with eric5.'\ 932 print('Sorry, PyQt4 version {0} is not compatible with eric5.'
933 .format(vers)) 933 .format(vers))
934 print('Please install another version.') 934 print('Please install another version.')
935 exit(4) 935 exit(4)
936 print("PyQt Version: ", pyqtVersion) 936 print("PyQt Version: ", pyqtVersion)
937 937
945 (maj, min, pat) = scintillaVersion.split('.') 945 (maj, min, pat) = scintillaVersion.split('.')
946 maj = int(maj) 946 maj = int(maj)
947 min = int(min) 947 min = int(min)
948 pat = int(pat) 948 pat = int(pat)
949 if maj < 2 or (maj == 2 and min < 6): 949 if maj < 2 or (maj == 2 and min < 6):
950 print('Sorry, you must have QScintilla 2.6.0 or higher or' \ 950 print('Sorry, you must have QScintilla 2.6.0 or higher or'
951 ' a recent snapshot release.') 951 ' a recent snapshot release.')
952 exit(5) 952 exit(5)
953 # check for blacklisted versions 953 # check for blacklisted versions
954 for vers in BlackLists["QScintilla2"] + \ 954 for vers in BlackLists["QScintilla2"] + \
955 PlatformBlackLists["QScintilla2"]: 955 PlatformBlackLists["QScintilla2"]:

eric ide

mercurial