install.py

branch
Py2 comp.
changeset 3065
070b35dde35e
parent 3060
5883ce99ee12
child 3145
a9de05d4a22f
equal deleted inserted replaced
3061:1c0ea3a87390 3065:070b35dde35e
841 """ 841 """
842 print('Checking dependencies') 842 print('Checking dependencies')
843 843
844 # perform dependency checks 844 # perform dependency checks
845 if sys.version_info < (2, 6, 0): 845 if sys.version_info < (2, 6, 0):
846 print('Sorry, you must have Python 2.6.0 or higher or Python 3.1.0 or higher.') 846 print('Sorry, you must have Python 2.6.0 or higher or '
847 'Python 3.1.0 or higher.')
847 exit(5) 848 exit(5)
848 elif sys.version_info < (3, 1, 0) and sys.version_info[0] == 3: 849 elif sys.version_info < (3, 1, 0) and sys.version_info[0] == 3:
849 print('Sorry, you must have Python 3.1.0 or higher.') 850 print('Sorry, you must have Python 3.1.0 or higher.')
850 exit(5) 851 exit(5)
851 if sys.version_info > (3, 9, 9): 852 if sys.version_info > (3, 9, 9):
1081 # Parse the command line. 1082 # Parse the command line.
1082 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir 1083 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir
1083 global sourceDir, configName, macAppBundleName, macPythonExe 1084 global sourceDir, configName, macAppBundleName, macPythonExe
1084 1085
1085 if sys.version_info < (2, 6, 0) or sys.version_info > (3, 9, 9): 1086 if sys.version_info < (2, 6, 0) or sys.version_info > (3, 9, 9):
1086 print('Sorry, eric5 requires at least Python 2.6 or Python 3 for running.') 1087 print('Sorry, eric5 requires at least Python 2.6 or '
1088 'Python 3 for running.')
1087 exit(5) 1089 exit(5)
1088 1090
1089 progName = os.path.basename(argv[0]) 1091 progName = os.path.basename(argv[0])
1090 1092
1091 if os.path.dirname(argv[0]): 1093 if os.path.dirname(argv[0]):

eric ide

mercurial