install.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2680
110ac646a3a0
parent 2763
e4794166ad70
child 2846
b852fe4d153a
equal deleted inserted replaced
2790:6686a3326df8 2791:a9577f248f04
354 "eric5-plugininstall", "eric5-pluginuninstall", 354 "eric5-plugininstall", "eric5-pluginuninstall",
355 "eric5-pluginrepository", "eric5-sqlbrowser", 355 "eric5-pluginrepository", "eric5-sqlbrowser",
356 "eric5-webbrowser", "eric5-iconeditor", 356 "eric5-webbrowser", "eric5-iconeditor",
357 "eric5_api", "eric5_compare", 357 "eric5_api", "eric5_compare",
358 "eric5_configure", "eric5_diff", 358 "eric5_configure", "eric5_diff",
359 "eric5_doc", 359 "eric5_doc", "eric5_qregularexpression",
360 "eric5_qregexp", "eric5_re", 360 "eric5_qregexp", "eric5_re",
361 "eric5_trpreviewer", "eric5_uipreviewer", 361 "eric5_trpreviewer", "eric5_uipreviewer",
362 "eric5_unittest", "eric5", 362 "eric5_unittest", "eric5",
363 "eric5_tray", "eric5_editor", 363 "eric5_tray", "eric5_editor",
364 "eric5_plugininstall", "eric5_pluginuninstall", 364 "eric5_plugininstall", "eric5_pluginuninstall",
456 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_iconeditor")) 456 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_iconeditor"))
457 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_plugininstall")) 457 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_plugininstall"))
458 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_pluginrepository")) 458 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_pluginrepository"))
459 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_pluginuninstall")) 459 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_pluginuninstall"))
460 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_qregexp")) 460 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_qregexp"))
461 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_qregularexpression"))
461 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_re")) 462 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_re"))
462 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_snap")) 463 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_snap"))
463 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_sqlbrowser")) 464 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_sqlbrowser"))
464 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_tray")) 465 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_tray"))
465 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_trpreviewer")) 466 wnames.append(createPyWrapper(cfg['ericDir'], "eric5_trpreviewer"))
818 819
819 try: 820 try:
820 from PyQt4 import Qsci # __IGNORE_WARNING__ 821 from PyQt4 import Qsci # __IGNORE_WARNING__
821 except ImportError as msg: 822 except ImportError as msg:
822 print("Sorry, please install QScintilla2 and") 823 print("Sorry, please install QScintilla2 and")
823 print("it's PyQt4 wrapper.") 824 print("its PyQt4 wrapper.")
824 print('Error: {0}'.format(msg)) 825 print('Error: {0}'.format(msg))
825 exit(1) 826 exit(1)
826 print("Found QScintilla2") 827 print("Found QScintilla2")
827 828
828 for impModule in [ 829 for impModule in [
1020 import getopt 1021 import getopt
1021 1022
1022 # Parse the command line. 1023 # Parse the command line.
1023 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir 1024 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir
1024 global sourceDir, configName, macAppBundleName, macPythonExe 1025 global sourceDir, configName, macAppBundleName, macPythonExe
1026
1027 if sys.version_info > (3, 9, 9) or sys.version_info < (3, 0, 0):
1028 print('Sorry, eric5 requires Python 3 for running.')
1029 exit(5)
1025 1030
1026 progName = os.path.basename(argv[0]) 1031 progName = os.path.basename(argv[0])
1027 1032
1028 if os.path.dirname(argv[0]): 1033 if os.path.dirname(argv[0]):
1029 os.chdir(os.path.dirname(argv[0])) 1034 os.chdir(os.path.dirname(argv[0]))

eric ide

mercurial