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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 04 Mar 2016 18:48:56 +0100
changeset 4800
9b30c587513c
parent 4796
35bc6fe7e198
child 4801
71bdc520f640
child 4802
2e148b5fb483

Added a check for pyuic to the install script to prevent errors later on in the installation, if it is not installed.
(grafted from 5bf8d2023dac9bf3701ad294e5c5602646d05e52)

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Thu Mar 03 19:36:05 2016 +0100
+++ b/install.py	Fri Mar 04 18:48:56 2016 +0100
@@ -1097,6 +1097,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