Updated the install script to check for the presence of the xml.etree package, which is sometimes included in a separate installation package. 5_1_x

Tue, 03 Jan 2012 11:02:00 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 03 Jan 2012 11:02:00 +0100
branch
5_1_x
changeset 1526
5193e77c2188
parent 1523
e38f749a6f28
child 1528
a779be4e8558

Updated the install script to check for the presence of the xml.etree package, which is sometimes included in a separate installation package.

install.py file | annotate | diff | comparison | revisions
diff -r e38f749a6f28 -r 5193e77c2188 install.py
--- a/install.py	Sun Jan 01 17:16:40 2012 +0100
+++ b/install.py	Tue Jan 03 11:02:00 2012 +0100
@@ -713,6 +713,13 @@
     print("Python Version: {0:d}.{1:d}.{2:d}".format(*sys.version_info[:3]))
     
     try:
+        import xml.etree            # __IGNORE_WARNING__
+    except ImportError as msg:
+        print('Your Python3 installation is missing the XML module.')
+        print('Please install it and try again.')
+        exit(5)
+    
+    try:
         from PyQt4.QtCore import qVersion
     except ImportError as msg:
         print('Sorry, please install PyQt4.')

eric ide

mercurial