install.py

changeset 3542
07cde1e38b06
parent 3539
0c2dc1446ebf
child 3593
e3435c1ce0cf
equal deleted inserted replaced
3541:5c35f4f0ecf1 3542:07cde1e38b06
870 exit(5) 870 exit(5)
871 elif sys.version_info < (3, 1, 0) and sys.version_info[0] == 3: 871 elif sys.version_info < (3, 1, 0) and sys.version_info[0] == 3:
872 print('Sorry, you must have Python 3.1.0 or higher.') 872 print('Sorry, you must have Python 3.1.0 or higher.')
873 exit(5) 873 exit(5)
874 if sys.version_info > (3, 9, 9): 874 if sys.version_info > (3, 9, 9):
875 print('Sorry, eric5 requires Python 3 for running.') 875 print('Sorry, eric5 requires Python 3 or Python 2 for running.')
876 exit(5) 876 exit(5)
877 print("Python Version: {0:d}.{1:d}.{2:d}".format(*sys.version_info[:3])) 877 print("Python Version: {0:d}.{1:d}.{2:d}".format(*sys.version_info[:3]))
878 878
879 try: 879 try:
880 import xml.etree # __IGNORE_WARNING__ 880 import xml.etree # __IGNORE_WARNING__
1120 1120
1121 try: 1121 try:
1122 if sys.platform.startswith("win"): 1122 if sys.platform.startswith("win"):
1123 optlist, args = getopt.getopt(argv[1:], "chxza:b:d:f:") 1123 optlist, args = getopt.getopt(argv[1:], "chxza:b:d:f:")
1124 elif sys.platform == "darwin": 1124 elif sys.platform == "darwin":
1125 optlist, args = getopt.getopt(argv[1:], "chxza:b:d:f:i:m:p:") 1125 optlist, args = getopt.getopt(argv[1:], "chxza:b:d:f:i:m:n:p:")
1126 else: 1126 else:
1127 optlist, args = getopt.getopt(argv[1:], "chxza:b:d:f:i:") 1127 optlist, args = getopt.getopt(argv[1:], "chxza:b:d:f:i:")
1128 except getopt.GetoptError: 1128 except getopt.GetoptError:
1129 usage() 1129 usage()
1130 1130

eric ide

mercurial