install.py

changeset 2312
976dcb82c3e9
parent 2308
f83826045e51
child 2383
e999256385bd
--- a/install.py	Fri Jan 04 17:00:05 2013 +0100
+++ b/install.py	Sat Jan 05 14:21:34 2013 +0100
@@ -801,7 +801,7 @@
     except ImportError as msg:
         print('Sorry, please install QtHelp.')
         print('Error: {0}'.format(msg))
-        sys.exit(1)
+        exit(1)
     print("Found QtHelp")
     
     try:
@@ -813,6 +813,22 @@
         exit(1)
     print("Found QScintilla2")
     
+    for impModule in [
+        "PyQt4.QtGui", "PyQt4.QtNetwork", "PyQt4.QtSql",
+        "PyQt4.QtSvg", "PyQt4.QtWebKit",
+    ]:
+        name = impModule.split(".")[1]
+        modulesOK = True
+        try:
+            __import__(impModule)
+            print("Found", name)
+        except ImportError as msg:
+            print('Sorry, please install {0}.'.format(name))
+            print('Error: {0}'.format(msg))
+            modulesOK = False
+    if not modulesOK:
+        exit(1)
+    
     # determine the platform dependent black list
     if sys.platform.startswith("win"):
         PlatformBlackLists = PlatformsBlackLists["windows"]

eric ide

mercurial