scripts/install.py

branch
eric7-maintenance
changeset 9192
a763d57e23bc
parent 9111
4ac66b6c33a4
parent 9175
21e2be5f0b41
child 9264
18a7312cfdb3
equal deleted inserted replaced
9137:bd90cbe0b7d2 9192:a763d57e23bc
789 os.path.join(eric7SourceDir, "DebugClients", "Python", "coverage"), 789 os.path.join(eric7SourceDir, "DebugClients", "Python", "coverage"),
790 os.path.join(cfg['ericDir'], "DebugClients", "Python", "coverage"), 790 os.path.join(cfg['ericDir'], "DebugClients", "Python", "coverage"),
791 ['*.js', '*.html', '*.png', '*.css', '*.scss', '*.txt', '*.rst']) 791 ['*.js', '*.html', '*.png', '*.css', '*.scss', '*.txt', '*.rst'])
792 792
793 # copy some data files needed at various places 793 # copy some data files needed at various places
794 copyTree(
795 os.path.join(eric7SourceDir, "data"),
796 os.path.join(cfg['ericDir'], "data"),
797 ['*.txt'])
794 copyTree( 798 copyTree(
795 os.path.join(eric7SourceDir, "EricNetwork", "data"), 799 os.path.join(eric7SourceDir, "EricNetwork", "data"),
796 os.path.join(cfg['ericDir'], "EricNetwork", "data"), 800 os.path.join(cfg['ericDir'], "EricNetwork", "data"),
797 ['*.dat', '*.txt']) 801 ['*.dat', '*.txt'])
798 copyTree( 802 copyTree(
1496 if not isSudo and isPipOutdated(): 1500 if not isSudo and isPipOutdated():
1497 updatePip() 1501 updatePip()
1498 print("\n") 1502 print("\n")
1499 1503
1500 # perform dependency checks 1504 # perform dependency checks
1501 if sys.version_info < (3, 7, 0): 1505 if sys.version_info < (3, 7, 0) or sys.version_info >= (3, 12, 0):
1502 print('Sorry, you must have Python 3.7.0 or higher.') 1506 print('Sorry, you must have Python 3.7.0 or higher, but less 3.12.0.')
1507 print("Yours is {0}.".format(
1508 ".".join(str(v) for v in sys.version_info[:3])
1509 ))
1503 exit(5) 1510 exit(5)
1504 1511
1505 try: 1512 try:
1506 import xml.etree # __IGNORE_WARNING__ 1513 import xml.etree # __IGNORE_WARNING__
1507 except ImportError: 1514 except ImportError:
1619 "wheel": ("wheel", ""), 1626 "wheel": ("wheel", ""),
1620 "parso": ("parso", ""), 1627 "parso": ("parso", ""),
1621 "jedi": ("jedi", ""), 1628 "jedi": ("jedi", ""),
1622 "packaging": ("packaging", ""), 1629 "packaging": ("packaging", ""),
1623 "pipdeptree": ("pipdeptree", ""), 1630 "pipdeptree": ("pipdeptree", ""),
1631 "cyclonedx-python-lib": ("cyclonedx", ""),
1632 "cyclonedx-bom": ("cyclonedx_py", ""),
1633 "trove-classifiers": ("trove_classifiers", ""),
1624 } 1634 }
1625 if not ignorePyqt6Tools: 1635 if not ignorePyqt6Tools:
1626 optionalModulesList["qt6-applications"] = ("qt6_applications", "") 1636 optionalModulesList["qt6-applications"] = ("qt6_applications", "")
1627 1637
1628 # check mandatory modules 1638 # check mandatory modules

eric ide

mercurial