install.py

changeset 3678
2866383fd342
parent 3670
f0cb7579c0b4
child 3681
3a79355b9ca5
equal deleted inserted replaced
3677:a53cf139293f 3678:2866383fd342
409 if os.path.exists(name): 409 if os.path.exists(name):
410 os.remove(name) 410 os.remove(name)
411 411
412 # Remove the wrapper scripts 412 # Remove the wrapper scripts
413 rem_wnames = [ 413 rem_wnames = [
414 "eric6-api", "eric6-compare",
415 "eric6-configure", "eric6-diff",
416 "eric6-doc",
417 "eric6-qregexp", "eric6-re",
418 "eric6-trpreviewer", "eric6-uipreviewer",
419 "eric6-unittest", "eric6",
420 "eric6-tray", "eric6-editor",
421 "eric6-plugininstall", "eric6-pluginuninstall",
422 "eric6-pluginrepository", "eric6-sqlbrowser",
423 "eric6-webbrowser", "eric6-iconeditor",
424 ]
425 rem_wnames2 = [
426 "eric6_api", "eric6_compare", 414 "eric6_api", "eric6_compare",
427 "eric6_configure", "eric6_diff", 415 "eric6_configure", "eric6_diff",
428 "eric6_doc", "eric6_qregularexpression", 416 "eric6_doc", "eric6_qregularexpression",
429 "eric6_qregexp", "eric6_re", 417 "eric6_qregexp", "eric6_re",
430 "eric6_trpreviewer", "eric6_uipreviewer", 418 "eric6_trpreviewer", "eric6_uipreviewer",
435 "eric6_webbrowser", "eric6_iconeditor", 423 "eric6_webbrowser", "eric6_iconeditor",
436 "eric6_snap", 424 "eric6_snap",
437 ] 425 ]
438 if includePythonVariant: 426 if includePythonVariant:
439 marker = PythonMarkers[sys.version_info.major] 427 marker = PythonMarkers[sys.version_info.major]
440 rem_wnames.extend([n + marker for n in rem_wnames2]) 428 rem_wnames = [n + marker for n in rem_wnames]
441 else:
442 rem_wnames.extend(rem_wnames2)
443 429
444 try: 430 try:
445 for rem_wname in rem_wnames: 431 for rem_wname in rem_wnames:
446 for d in [platBinDir, getConfig('bindir')]: 432 for d in [platBinDir, getConfig('bindir')]:
447 rwname = wrapperName(d, rem_wname) 433 rwname = wrapperName(d, rem_wname)
918 Perform some dependency checks. 904 Perform some dependency checks.
919 """ 905 """
920 print('Checking dependencies') 906 print('Checking dependencies')
921 907
922 # perform dependency checks 908 # perform dependency checks
923 if sys.version_info < (2, 6, 0): 909 if sys.version_info < (2, 7, 0):
924 print('Sorry, you must have Python 2.6.0 or higher or ' 910 print('Sorry, you must have Python 2.7.0 or higher or '
925 'Python 3.1.0 or higher.') 911 'Python 3.1.0 or higher.')
926 exit(5) 912 exit(5)
927 elif sys.version_info < (3, 1, 0) and sys.version_info[0] == 3: 913 elif sys.version_info < (3, 1, 0) and sys.version_info[0] == 3:
928 print('Sorry, you must have Python 3.1.0 or higher.') 914 print('Sorry, you must have Python 3.1.0 or higher.')
929 exit(5) 915 exit(5)
1174 # Parse the command line. 1160 # Parse the command line.
1175 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir 1161 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir
1176 global sourceDir, configName, includePythonVariant 1162 global sourceDir, configName, includePythonVariant
1177 global macAppBundlePath, macAppBundleName, macPythonExe 1163 global macAppBundlePath, macAppBundleName, macPythonExe
1178 1164
1179 if sys.version_info < (2, 6, 0) or sys.version_info > (3, 9, 9): 1165 if sys.version_info < (2, 7, 0) or sys.version_info > (3, 9, 9):
1180 print('Sorry, eric6 requires at least Python 2.6 or ' 1166 print('Sorry, eric6 requires at least Python 2.7 or '
1181 'Python 3 for running.') 1167 'Python 3 for running.')
1182 exit(5) 1168 exit(5)
1183 1169
1184 progName = os.path.basename(argv[0]) 1170 progName = os.path.basename(argv[0])
1185 1171

eric ide

mercurial