scripts/install.py

branch
eric7-maintenance
changeset 10148
31ba20629af4
parent 10101
34f74c19ed7a
parent 10122
f9b87800ecf2
child 10174
6aac1022f330
equal deleted inserted replaced
10102:6ae4d88c722b 10148:31ba20629af4
1118 Create Desktop and Start Menu links. 1118 Create Desktop and Start Menu links.
1119 """ 1119 """
1120 try: 1120 try:
1121 # check, if pywin32 is available 1121 # check, if pywin32 is available
1122 from win32com.client import Dispatch # __IGNORE_WARNING__ 1122 from win32com.client import Dispatch # __IGNORE_WARNING__
1123 except ImportError: 1123 except (ImportError, ModuleNotFoundError): # noqa: M514
1124 installed = pipInstall( 1124 installed = pipInstall(
1125 "pywin32", 1125 "pywin32",
1126 "\nThe Python package 'pywin32' could not be imported.", 1126 "\nThe Python package 'pywin32' could not be imported.",
1127 force=False, 1127 force=False,
1128 ) 1128 )
1590 if not isSudo and isPipOutdated(): 1590 if not isSudo and isPipOutdated():
1591 updatePip() 1591 updatePip()
1592 print("\n") 1592 print("\n")
1593 1593
1594 # perform dependency checks 1594 # perform dependency checks
1595 if sys.version_info < (3, 7, 0) or sys.version_info >= (3, 12, 0): 1595 if sys.version_info < (3, 8, 0) or sys.version_info >= (3, 12, 0):
1596 print("Sorry, you must have Python 3.7.0 or higher, but less 3.12.0.") 1596 print("Sorry, you must have Python 3.8.0 or higher, but less 3.12.0.")
1597 print("Yours is {0}.".format(".".join(str(v) for v in sys.version_info[:3]))) 1597 print("Yours is {0}.".format(".".join(str(v) for v in sys.version_info[:3])))
1598 exit(5) 1598 exit(5)
1599 1599
1600 try: 1600 try:
1601 import xml.etree # __IGNORE_WARNING__ 1601 import xml.etree # __IGNORE_WARNING__
2183 global installApis, doCleanDesktopLinks, yes2All 2183 global installApis, doCleanDesktopLinks, yes2All
2184 global createInstallInfoFile, installCwd 2184 global createInstallInfoFile, installCwd
2185 global withPyqt6Tools 2185 global withPyqt6Tools
2186 global verbose 2186 global verbose
2187 2187
2188 if sys.version_info < (3, 7, 0) or sys.version_info > (3, 99, 99): 2188 if sys.version_info < (3, 8, 0) or sys.version_info > (3, 99, 99):
2189 print("Sorry, eric requires at least Python 3.7 for running.") 2189 print("Sorry, eric requires at least Python 3.8 for running.")
2190 exit(5) 2190 exit(5)
2191 2191
2192 progName = os.path.basename(argv[0]) 2192 progName = os.path.basename(argv[0])
2193 2193
2194 installCwd = os.getcwd() 2194 installCwd = os.getcwd()

eric ide

mercurial