scripts/install.py

branch
eric7
changeset 9143
82f08c4fd930
parent 9127
22e94bac751a
child 9175
21e2be5f0b41
--- a/scripts/install.py	Fri Jun 10 10:41:38 2022 +0200
+++ b/scripts/install.py	Fri Jun 10 11:12:50 2022 +0200
@@ -1502,8 +1502,11 @@
         print("\n")
     
     # perform dependency checks
-    if sys.version_info < (3, 7, 0):
-        print('Sorry, you must have Python 3.7.0 or higher.')
+    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.')
+        print("Yours is {0}.".format(
+            ".".join(str(v) for v in sys.version_info[:3])
+        ))
         exit(5)
     
     try:

eric ide

mercurial