scripts/install.py

branch
eric7-maintenance
changeset 10148
31ba20629af4
parent 10101
34f74c19ed7a
parent 10122
f9b87800ecf2
child 10174
6aac1022f330
diff -r 6ae4d88c722b -r 31ba20629af4 scripts/install.py
--- a/scripts/install.py	Sun Jul 02 17:40:17 2023 +0200
+++ b/scripts/install.py	Tue Aug 01 09:59:45 2023 +0200
@@ -1120,7 +1120,7 @@
     try:
         # check, if pywin32 is available
         from win32com.client import Dispatch  # __IGNORE_WARNING__
-    except ImportError:
+    except (ImportError, ModuleNotFoundError):  # noqa: M514
         installed = pipInstall(
             "pywin32",
             "\nThe Python package 'pywin32' could not be imported.",
@@ -1592,8 +1592,8 @@
         print("\n")
 
     # perform dependency checks
-    if sys.version_info < (3, 7, 0) or sys.version_info >= (3, 12, 0):
-        print("Sorry, you must have Python 3.7.0 or higher, but less 3.12.0.")
+    if sys.version_info < (3, 8, 0) or sys.version_info >= (3, 12, 0):
+        print("Sorry, you must have Python 3.8.0 or higher, but less 3.12.0.")
         print("Yours is {0}.".format(".".join(str(v) for v in sys.version_info[:3])))
         exit(5)
 
@@ -2185,8 +2185,8 @@
     global withPyqt6Tools
     global verbose
 
-    if sys.version_info < (3, 7, 0) or sys.version_info > (3, 99, 99):
-        print("Sorry, eric requires at least Python 3.7 for running.")
+    if sys.version_info < (3, 8, 0) or sys.version_info > (3, 99, 99):
+        print("Sorry, eric requires at least Python 3.8 for running.")
         exit(5)
 
     progName = os.path.basename(argv[0])

eric ide

mercurial