demandimport: blacklist gtk
authorSteve Borho <steve@borho.org>
Thu, 17 Sep 2009 17:39:43 -0500
changeset 9458 ffeaf5ba25d8
parent 9456 c564dbb2a6d5
child 9463 bd017f359c08
demandimport: blacklist gtk Demandimport breaks gtk. You get a meaningless error about 'failed loading gobject\_gobject.pyd'. Mercurial does not use gtk, but this trips up many extension writers.
mercurial/demandimport.py
--- a/mercurial/demandimport.py	Thu Sep 17 21:52:08 2009 +0200
+++ b/mercurial/demandimport.py	Thu Sep 17 17:39:43 2009 -0500
@@ -127,6 +127,8 @@
     # imported by profile, itself imported by hotshot.stats,
     # not available under Windows
     'resource',
+    # this trips up many extension authors
+    'gtk',
     ]
 
 def enable():