Added a check to the install script to guard against an execution with a Python2 interpreter.

Sat, 01 Jun 2013 11:31:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 01 Jun 2013 11:31:48 +0200
changeset 2690
8ca13f15e1f2
parent 2689
dc0b8301523d
child 2693
85a85d5824ed

Added a check to the install script to guard against an execution with a Python2 interpreter.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sat Jun 01 11:21:08 2013 +0200
+++ b/install.py	Sat Jun 01 11:31:48 2013 +0200
@@ -1011,6 +1011,10 @@
     global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir
     global sourceDir, configName, macAppBundleName, macPythonExe
     
+    if sys.version_info > (3, 9, 9) or sys.version_info < (3, 0, 0):
+        print('Sorry, eric5 requires Python 3 for running.')
+        exit(5)
+    
     progName = os.path.basename(argv[0])
     
     if os.path.dirname(argv[0]):

eric ide

mercurial