Added a check for pyuic to the install script to prevent errors later on in the installation, if it is not installed. 6_1_x

Fri, 04 Mar 2016 18:48:56 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 04 Mar 2016 18:48:56 +0100
branch
6_1_x
changeset 4799
5bf8d2023dac
parent 4797
bd8324bd25f3
child 4803
1471898a497d

Added a check for pyuic to the install script to prevent errors later on in the installation, if it is not installed.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Thu Mar 03 19:37:40 2016 +0100
+++ b/install.py	Fri Mar 04 18:48:56 2016 +0100
@@ -1096,6 +1096,19 @@
     
     try:
         if pyqtVariant == "PyQt4":
+            pyuic = "pyuic4"
+            from PyQt4 import uic      # __IGNORE_WARNING__
+        else:
+            pyuic = "pyuic5"
+            from PyQt5 import uic      # __IGNORE_WARNING__
+    except ImportError as msg:
+        print("Sorry, {0} is not installed.".format(pyuic))
+        print('Error: {0}'.format(msg))
+        exit(1)
+    print("Found {0}".format(pyuic))
+    
+    try:
+        if pyqtVariant == "PyQt4":
             from PyQt4 import Qsci      # __IGNORE_WARNING__
         else:
             from PyQt5 import Qsci      # __IGNORE_WARNING__

eric ide

mercurial