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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 01 Jun 2013 11:31:48 +0200
branch
5_3_x
changeset 2691
0499c802883f
parent 2688
78c21583101d
child 2692
6433ec640d10

Added a check to the install script to guard against an execution with a Python2 interpreter.
(grafted from 8ca13f15e1f2f4ea591340e64c81f9fe9135ef40)

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
@@ -1019,6 +1019,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